Question Detail

The antonym of constructor is ?

  • Creator
  • Distinct
  • Destroyer
  • Destructor
Similar Questions :

1. The function used to define the task assigned to an operator is ?

  • Virtual function
  • Static function
  • Operator function
  • Friend function

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

  • Private
  • Public
  • Protected
  • Depends

3. Enumerators are stored by the compiler in ?

  • string
  • integer
  • float
  • any of above

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

5. A virtual base class ?

  • is qualified as virtual in base class definition.
  • do not qualified as virtual in base class definition.
  • allows to inherit more than one copy of the base class members.
  • strict the path of inheritance.
Read more from - C++ Programming Questions Answers - Set 2