Consider the following two statements:
(a)A publicly derived class is a subtype of its base class.
(b)Inheritance provides for code reuse.
(A) Both the statements (a) and (b) are correct.
(B) Neither of the statements (a) and (b) are correct
(C) Statement (a) is correct and (b) is incorrect
(D) Statement (a) is incorrect and (b) is correct.
Answer: (A)
Explanation:
- A publicly derived class is a subtype of its base class.
- Inheritance provides for code reuse.
So, option (A) is correct.
Quiz of this Question
Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape,
GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out -
check it out now!
Last Updated :
01 May, 2018
Like Article
Save Article