Question Detail

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
Similar Questions :

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

2. How we can define member function outside the class ?

  • Using union
  • Using structure
  • Using pointers
  • Using scope resolution

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

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

4. Which is more memory efficient ?

  • structure
  • union
  • both use same memory
  • depends on a programmer

5. The default visibility mode while inheriting is ?

  • public
  • protected
  • private
  • may be any of above
Read more from - C++ Programming Questions Answers - Set 2