हिंदी
तमिलनाडु बोर्ड ऑफ सेकेंडरी एज्युकेशनएचएससी विज्ञान कक्षा ११

What is the difference between public and private visibility modes? - Computer Science

Advertisements
Advertisements

प्रश्न

What is the difference between public and private visibility modes?

अंतर स्पष्ट करें

उत्तर

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.

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 - B [पृष्ठ २७३]

APPEARS IN

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

Englishहिंदीमराठी


      Forgot password?
Use app×