Question Detail

What is class in c++ ?

  • When you define a class, you define a blueprint for a data type.
  • When you define a class, you make get more funtionality.
  • When you define a class, you define the logic.
  • When you define a class, you make debugging.
Similar Questions :

1. What is purpose of abstract class ?

  • to provide help with database connectivity.
  • to provide data input to other classes.
  • to provide security to other classes.
  • to provide an appropriate base class from which other classes can inherit.

2. Which among following is correct way of declaring object of a class ?

  • Classname Objectname;
  • Class Classname Objectname;
  • Class Classname Object Objectname;
  • Classname Object Objectname;

3. Size of a char is ?

  • 1
  • 2
  • 3
  • 4

4. Classes in c++ are ?

  • Fundamental data type
  • Primitive data type
  • Desired data type
  • Not defined

5. Destructors are called ?

  • not defined
  • in any order
  • in the reverse order of constructor calls
  • in the same order of constructor calls
Read more from - C++ Programming Questions Answers - Set 2