Question Detail

Can we define array of classes in c++ ?

  • Yes
  • No
Similar Questions :

1. What is default scope for a structure ?

  • Private
  • Protected
  • Public
  • None of aobve

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. Inheritance is referred to as

  • “is a” relationship
  • "have a" relationship
  • both of above
  • none of above

4. Enumerators are stored by the compiler in ?

  • string
  • integer
  • float
  • any of above

5. The private data members of a class are accessible ?

  • Directly to objects of that class
  • To any function defined outside a class
  • Only to the member functions
  • Only using keyword static
Read more from - C++ Programming Questions Answers - Set 2