Question Detail

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

  • True
  • False
Similar Questions :

1. A virtual base class ?

  • is qualified as virtual in base class definition.
  • do not qualified as virtual in base class definition.
  • allows to inherit more than one copy of the base class members.
  • strict the path of inheritance.

2. Which is more memory efficient ?

  • structure
  • union
  • both use same memory
  • depends on a programmer

3. When one class inherits from the base class, then the original class is called ?

  • derived class
  • base class
  • sub class
  • basic class

4. Which of the following cannot be passed to a function ?

  • Array
  • Reference variable
  • Object
  • File

5. The members of a class are ?

b) by default are private
c) are made private by declaring as private
d) none of the above]

  • have no visibility by default
  • public by default
  • private by default
  • protected by default
Read more from - C++ Programming Questions Answers - Set 2