Question Detail

What is true about Constructor ?

  • Its name is plural of class name.
  • Its name has * symbol before it.
  • Its name is same as of class name.
  • Its name has # symbol before it.
Similar Questions :

1. Enumerator will allocate the memory when its variables are defined.

  • True
  • False

2. The major goal of inheritance in C++ is ?

  • To facilitate the reusability of code
  • To help modular programming
  • To facilitate the conversion of data types
  • To extend the capabilities of a class

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. Which variables cannot be declared ?

  • structure
  • pointer
  • class
  • void

5. Classes that can be used to instantiate objects are called concrete classes.

  • True
  • False
Read more from - C++ Programming Questions Answers - Set 2