Question Detail

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

  • derived class
  • base class
  • sub class
  • basic class
Similar Questions :

1. What is true about Constructor ?

  • Its name is plural of class name.
  • Its name has * symbol before it.
  • Its name is same as of class name.
  • Its name has # symbol before it.

2. Which is more memory efficient ?

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

3. Which variables cannot be declared ?

  • structure
  • pointer
  • class
  • void

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

5. How we can access data members using objects ?

  • object@datamember
  • object*datamember
  • object->datamember
  • object.datamember
Read more from - C++ Programming Questions Answers - Set 2