download Mastguru Android App

Question Detail

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

  • Private
  • Public
  • Protected
  • Depends
Similar Questions :

1. When a structure refers to itself, it is known as ?

  • encapsulated structure
  • nested structure
  • recursive structure
  • self-referential structure

2. & operator is ?

  • address operator
  • indirection operator
  • logical and
  • logical or

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

4. The objects can directly access ?

  • Public members
  • Private members
  • Both of above
  • None of above

5. What among following is a generic class ?

  • Function Template
  • Class Template
  • Inherited Template
  • None of above
Read more from - C++ Programming Questions Answers - Set 2
Post a comment