download Mastguru Android App

Question Detail

Even if we define a function in a class, then also we need to declare it first.

  • True
  • False
Similar Questions :

1. What is purpose of abstract class ?

  • to provide help with database connectivity.
  • to provide data input to other classes.
  • to provide security to other classes.
  • to provide an appropriate base class from which other classes can inherit.

2. Inheritance is referred to as

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

3. Enumerator will allocate the memory when its variables are defined.

  • True
  • False

4. An explicitly defined destructor function

  • may be virtual
  • may not be virtual
  • will always be virtual
  • will never be virtual

5. In C++ Functions can returns ?

  • arrays
  • reference
  • objects
  • all of above
Read more from - C++ Programming Questions Answers - Set 2
Post a comment