download Mastguru Android App

Question Detail

Constructors has return type void ?

  • True
  • False
Similar Questions :

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

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. Enumerator will allocate the memory when its variables are defined.

  • True
  • False

4. How we can define member function outside the class ?

  • Using union
  • Using structure
  • Using pointers
  • Using scope resolution

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

  • encapsulated structure
  • nested structure
  • recursive structure
  • self-referential structure
Read more from - C++ Programming Questions Answers - Set 2
Post a comment

  • Chowmya Rajakumar 8 years ago

    Constructors have no return type not even void

  • Abbas Haider 9 years ago

    constructors donot have any return type not even void

  • ABC 9 years ago

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