Knowee
Questions
Features
Study Tools

Which of the following access specifiers are used to control access to class members in C++? external, internal, protectedpublic, private, protectedfriend, private, protectedpublic, protected, friend

Question

Which of the following access specifiers are used to control access to class members in C++? external, internal, protectedpublic, private, protectedfriend, private, protectedpublic, protected, friend

🧐 Not the exact question you are looking for?Go ask a question

Solution

The access specifiers used to control access to class members in C++ are public, private, and protected.

Similar Questions

Which access specifier is usually used for data members of a class?a) Protectedb) Privatec) Publicd) Default

Which of the following access specifiers is used in a class definition by default?Select one:ProtectedPublicPrivateFriend

Explain the visibility of base class members for the access specifiers: private, protected and public while creating the derived class and also explain the syntax for creating derived class.

Which access modifier allows member access only within the same class and its subclasses?a.publicb.protectedc.defaultd.private

Which of the following access specifies is used in a class definition by default?a.Friendb.Privatec.Protectedd.Public

1/3

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.