By default, all members of a class have ___________ access for all its members

Options
- Public
- Protected
- No access
- private


CORRECT ANSWER : private

Discussion Board
Hi

Answer :public

Rajeshwari 06-27-2017 06:48 AM

C++ - Access Specifier

By default, all members of a class have private access for all its members. Therefore, any member that is declared before any other access specifier has private access automatically.

Prajakta Pandit 01-24-2017 01:54 AM

BS(CS)

Please send 20 to 30 questions about pointers and functions.I shall be very thankful to you for this act.

shan ali 02-19-2015 10:50 AM

Answr is wrong or question should be modified.

Answr should be public bcoz member functions of any class can access the data member of same class publicly...
Guys I have realized that Questions of this site are good but maximum answr are more confusing and wrong.

Pushp 12-3-2014 02:00 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