protected Access Specifier - OOPS के नियम के अनुसार हमें हमारे Object के Data को हमेंशा Private Scope में रखना चाहिए ताकि कोई भी Function या Script उस Data को Directly Access न कर सके बल्कि उस Data को Access करने के लिए हमें एक Well Defined Method Provide करना चाहिए, जो कि Public Scope में होना चाहिए। हालांकि ये प्रक्रिया काफी उपयुक्त है, लेकिन फिर भी इस प्रक्रिया के कारण हम Derived Class में भी Base Class के Private Data को Directly Access करने … [Read more...]
protected Access Specifier
Filed Under: Core PHP in Hindi Tagged With: access protected, class protected, difference between private and protected, difference between private and protected php, difference between protected and private, field should be package protected, package protected, php private protected, php protected private, private and protected, private protected, protected access, protected access specifier, protected class members, protected data members, protected default, protected field, protected fields, protected function, protected functions, protected internal, protected keyword, protected member, protected members, protected method, protected modifier, protected package, protected private, protected Scope Access Specifier, protected variable, protected variables, what does protected class mean