All members of a class have ___________ access to all its members.

Options
- Public
- Protected
- No access
- private


CORRECT ANSWER : private

Discussion Board
C++ - Access Specifier

All members of a class have private access to all its members.
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-30-2017 06:54 AM

You forgot a word

All members have _______ [default] access to all its members.

The correct answer to the way that you said it would be:
all members have [default of specified] access to all of their members.

pete olcott 01-4-2017 06:20 PM

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