Question Detail

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

  • Classname Objectname;
  • Class Classname Objectname;
  • Class Classname Object Objectname;
  • Classname Object Objectname;
Similar Questions :

1. Even if we define a function in a class, then also we need to declare it first.

  • True
  • False

2. The process of deriving a class from another derived class is known as ?

  • single inheritance
  • dual inheritance
  • multiple inheritance
  • multilevel inheritance

3. The default visibility mode while inheriting is ?

  • public
  • protected
  • private
  • may be any of above

4. When a derived class inherits from many base classes, this process is known as ?

  • multiple inheritance
  • multilevel inheritance
  • default inheritance
  • multiplex inheritance

5. & operator is ?

  • address operator
  • indirection operator
  • logical and
  • logical or
Read more from - C++ Programming Questions Answers - Set 2