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. 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. The function used to define the task assigned to an operator is ?

  • Virtual function
  • Static function
  • Operator function
  • Friend function

3. Classes that can be used to instantiate objects are called concrete classes.

  • True
  • False

4. We can do constructor overloading in C++ ?

  • True
  • False

5. 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
Read more from - C++ Programming Questions Answers - Set 2
Post a comment