Read the following statements and choose the correct option.
P) Variable or function declared in a class as private cannot be accessed outside the class even though the class is inherited by another class. Q) Public variables or functions of a class can be accessed to any class. R) When a class is declared as Static , it doesn't need an instance to access it members. S) When a member of class is declared as protected access modifier, then it can accessed by its child classes.
Reveal answer
Fill a bubble to check yourself