मराठी

A target does not have access to the private members of base class. - Computer Applications

Advertisements
Advertisements

प्रश्न

A target does not have access to the private members of base class. 

पर्याय

  • True

  • False

MCQ
चूक किंवा बरोबर

उत्तर

This statement is True.

Explanation:

  1. No other class, even the derived class (target class), can directly access private members of a base class.
  2. 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
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 8: Encapsulation and Inheritance - EXERCISES [पृष्ठ ४४५]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
पाठ 8 Encapsulation and Inheritance
EXERCISES | Q III. 8. | पृष्ठ ४४५
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×