मराठी
तामिळनाडू बोर्ड ऑफ सेकेंडरी एज्युकेशनएचएससी विज्ञान इयत्ता ११

Explain the different visibility modes through pictorial representation? - Computer Science

Advertisements
Advertisements

प्रश्न

Explain the different visibility modes through pictorial representation?

थोडक्यात उत्तर

उत्तर

Private visibility mode:
When a base class is inherited with private visibility mode the public and protected members of the base class become ‘private’ members of the derived class.

Protected visibility mode:
When a base class is inherited with protected visibility mode the protected and public members of the base class become ‘protected members’ of the derived class.

Public visibility mode:
When a base class is inherited with public visibility mode, the protected members of the base class will be inherited as protected members of the derived class and the public members of the base class will be inherited as public members of the derived class.

shaalaa.com
Visibility Modes
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 16: Inheritance - Evaluation - Section - D [पृष्ठ २७३]

APPEARS IN

सामाचीर कलवी Computer Science [English] Class 11 TN Board
पाठ 16 Inheritance
Evaluation - Section - D | Q 2. | पृष्ठ २७३
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×