download Mastguru Android App

Question Detail

The private data members of a class are accessible ?

  • Directly to objects of that class
  • To any function defined outside a class
  • Only to the member functions
  • Only using keyword static
Similar Questions :

1. 66. A constructor function is generally defined

  • In the private section of a class
  • In the public section of a class
  • In the protected section of a class
  • None of the above

2. An explicitly defined destructor function

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

3. What is default scope for a structure ?

  • Private
  • Protected
  • Public
  • None of aobve

4. Inheritance is transitive in nature.

  • True
  • False

5. Which variables cannot be declared ?

  • structure
  • pointer
  • class
  • void
Read more from - C++ Programming Questions Answers - Set 2
Post a comment