Skip to content
Related Articles
Get the best out of our app
GFG App
Open App
geeksforgeeks
Browser
Continue

Related Articles

UGC-NET | UGC NET CS 2015 Dec – II | Question 12

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

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

My Personal Notes arrow_drop_up
Last Updated : 01 May, 2018
Like Article
Save Article
Similar Reads