...
Question 680 – RAM
May 6, 2024
OOPS
May 6, 2024
Question 680 – RAM
May 6, 2024
OOPS
May 6, 2024

OOPS

Question 117
Assume the C++ definitions: Class circle: public point which of the following is false?
A
‘point’ is the base class and ‘circle’ is the derived class
B
The colon(:) in the header of class definition indicates inheritance
C
The keyword ‘public’ indicates type of inheritance
D
All the public and protected members of class ‘circle’ are inherited as public and protected members respectively into class point.
Question 117 Explanation: 
True: point’ is the base class and ‘circle’ is the derived class
True: The colon(:) in the header of class definition indicates inheritance
True: The keyword ‘public’ indicates type of inheritance
False: All the public and protected members of class ‘circle’ are inherited as public and protected members respectively into class point.
Correct Answer: D
Question 117 Explanation: 
True: point’ is the base class and ‘circle’ is the derived class
True: The colon(:) in the header of class definition indicates inheritance
True: The keyword ‘public’ indicates type of inheritance
False: All the public and protected members of class ‘circle’ are inherited as public and protected members respectively into class point.

Leave a Reply

Your email address will not be published. Required fields are marked *