The default access level assigned to members of a class is ___________

Options
- Private
- Public
- Protected
- Needs to be assigned


CORRECT ANSWER : Private

Discussion Board
C++

C++ output question and theory

Prashant Singh 06-2-2022 06:10 AM

C++ - Access Specifier

The default access level assigned to members of a class is Private.
Private members of a class are accessible only within the class and by friends of the class.
Protected members are accessible by the class itself and its subclasses.
Public members of a class can be accessed by anyone.

Prajakta Pandit 01-23-2017 01:00 AM

c++

very good

SOWMIYA.V 01-8-2015 01:21 AM

c++

good

SHARMILA.V 01-8-2015 01:20 AM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement