Question Detail

Can we define array of classes in c++ ?

  • Yes
  • No
Similar Questions :

1. The derived class constructor

  • never passes any values to base class constructor
  • can pass arguments only to one base class constructor function
  • is responsible for passing the entire test of arguments needed by base class constructors
  • none of above

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

  • Array
  • Reference variable
  • Object
  • File

3. The default visibility mode while inheriting is ?

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

4. Which is more memory efficient ?

  • structure
  • union
  • both use same memory
  • depends on a programmer

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