Question 680 – RAM
May 6, 2024OOPS
May 6, 2024OOPS
|
Question 117
|
Assume the C++ definitions: Class circle: public point which of the following is false?
|
‘point’ is the base class and ‘circle’ is the derived class
|
|
|
The colon(:) in the header of class definition indicates inheritance
|
|
|
The keyword ‘public’ indicates type of inheritance
|
|
|
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.
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.
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.
