Question Detail

The antonym of constructor is ?

  • Creator
  • Distinct
  • Destroyer
  • Destructor
Similar Questions :

1. Only one copy of the class is inherited, when it is defined as ?

  • virtual
  • public
  • static
  • private

2. A variable is defined within a block in a body of a function. Which of the following are true ?

  • It is visible from the point of definition to the end of the program.
  • It is visible throughout the function.
  • It is visible from the point of definition to the end of the block.
  • It is visible throughout the block.

3. What is default scope for a structure ?

  • Private
  • Protected
  • Public
  • None of aobve

4. Inheritance is transitive in nature.

  • True
  • False

5. Classes in c++ are ?

  • Fundamental data type
  • Primitive data type
  • Desired data type
  • Not defined
Read more from - C++ Programming Questions Answers - Set 2