Advertisements
Advertisements
प्रश्न
A target does not have access to the private members of base class.
विकल्प
True
False
MCQ
सत्य या असत्य
उत्तर
This statement is True.
Explanation:
- No other class, even the derived class (target class), can directly access private members of a base class.
- In Java, private members are only available within the class where they are specified. Even if a class is inherited, the derived class cannot access the base class's private members.
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?