Question Detail

Can we define array of classes in c++ ?

  • Yes
  • No
Similar Questions :

1. Which of following valid option will not return a value in c++ ?

  • free
  • void
  • empty
  • null

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

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

4. Which of the following cannot be passed to a function ?

  • Array
  • Reference variable
  • Object
  • File

5. 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
Read more from - C++ Programming Questions Answers - Set 2