download Mastguru Android App

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

2. Data members and member functions are enclosed within ?

  • union
  • structure
  • class
  • array

3. A variable is defined within a block in a body of a function. Which of the following are true ?

  • It is visible from the point of definition to the end of the program.
  • It is visible throughout the function.
  • It is visible from the point of definition to the end of the block.
  • It is visible throughout the block.

4. Among following which will give the size of object or type ?

  • Calloc
  • Malloc
  • Sizeof
  • Realloc

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
Post a comment