download Mastguru Android App

Question Detail

Can we define array of classes in c++ ?

  • Yes
  • No
Similar Questions :

1. 66. A constructor function is generally defined

  • In the private section of a class
  • In the public section of a class
  • In the protected section of a class
  • None of the above

2. A variable is defined within a block in a body of a function. Which of the following are true ?

  • It is visible from the point of definition to the end of the program.
  • It is visible throughout the function.
  • It is visible from the point of definition to the end of the block.
  • It is visible throughout the block.

3. What is true about Constructor ?

  • Its name is plural of class name.
  • Its name has * symbol before it.
  • Its name is same as of class name.
  • Its name has # symbol before it.

4. Constructors has return type void ?

  • True
  • False

5. What is default scope for a structure ?

  • Private
  • Protected
  • Public
  • None of aobve
Read more from - C++ Programming Questions Answers - Set 2
Post a comment