Open In App
Related Articles

UGC-NET | UGC NET CS 2015 Dec – III | Question 36

Improve
Improve
Improve
Like Article
Like
Save Article
Save
Report issue
Report
Which of the following is/are correct with reference to Abstract class and interface ? (a)A class can inherit only one Abstract class but may inherit several interfaces. (b)An Abstract class can provide complete and default code but an interface has no code. Codes: (A) (a) is true (B) (b) is true (C) Both (a) and (b) are true (D) Neither (a) nor (b) is true

Answer: (C)

Explanation: A class can inherit only one Abstract class but may inherit several interfaces. An Abstract class can provide complete and default code but an interface has no code. For more information on Abstract class Refer:Pure Virtual Functions and Abstract Classes in C++ Option (C) is correct.

Quiz of this Question

Last Updated : 11 Jun, 2018
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads