Explain the difference
between struct and class in terms of Access Modifier.
Latest answer: All members of a class are private by default,
whereas fields of a struct are public. Default access of a base class is
private for classes and public for structures...............
Read
answer
What is private,
public and protected Inheritance?
Latest answer: Private Inheritance: The Public and protected
members of Base class become private members of the derived class..............
Read answer
Latest answer: The access privileges in C++
are private, public and protected. The default access level assigned to members
of a class is private..............
Read answer
Latest answer: Private is the
default access specifier for every declared data item in a class. Private data
belongs to the same class in which it is created and can only be
used.............
Read answer
Latest answer: private: It is default one
and can be access from class member of the same class. protected: The protected
members can be access from member functions of the.............
Read
answer
Latest answer: The mutable keyword allows
the data member of a class to change within a const member
function...............
Read answer
|