Term public private and protected in oop
Object oriented programming terms:
publicscope to make that variable/function available from anywhere, other classes and instances of the object.privatescope when you want your variable/function to be visible in its own class only.protectedscope when you want to make your variable/function visible in all classes that extend current class including the parent class.
More: (For comprehensive information)
Komentar
Posting Komentar