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
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
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.