Question Detail

The objects can directly access ?

  • Public members
  • Private members
  • Both of above
  • None of above
Similar Questions :

1. What is default visibility mode for members of classes in C++ ?

  • Private
  • Public
  • Protected
  • Depends

2. An explicitly defined destructor function

  • may be virtual
  • may not be virtual
  • will always be virtual
  • will never be virtual

3. << operator is ?

  • stream extraction operator
  • stream insertion operator
  • left shift operator
  • right shift operator

4. Which of the following keywords are used to control access to a class member ?

  • protected
  • switch
  • goto
  • for

5. Destructors are called ?

  • not defined
  • in any order
  • in the reverse order of constructor calls
  • in the same order of constructor calls
Read more from - C++ Programming Questions Answers - Set 2