download Mastguru Android App

Question Detail

Constructors has return type void ?

  • True
  • False
Similar Questions :

1. A Variable __ of void type.

  • May be declared
  • Can be initialized
  • Cannot be intialized
  • Cannot be declared

2. Enumerators are stored by the compiler in ?

  • string
  • integer
  • float
  • any of above

3. When a structure refers to itself, it is known as ?

  • encapsulated structure
  • nested structure
  • recursive structure
  • self-referential structure

4. What is actual syntax of destructor in c++ ?

  • !Classname( )
  • @Classname( )
  • $Classname( )
  • ~Classname( )

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
Post a comment

  • Chowmya Rajakumar 9 years ago

    Constructors have no return type not even void

  • Abbas Haider 10 years ago

    constructors donot have any return type not even void

  • ABC 10 years ago

    no return type (Not even void) can be specified for a constructor