1.

Which Class is having highest degree of abstraction in multilevel inheritance of 5 levels?(a) Class at 1st level(b) Class 2nd last level(c) Class at 5th level(d) All with same abstractionI had been asked this question in an interview for internship.Enquiry is from Multilevel Inheritance in division Inheritance & its Types of Object Oriented Programming

Answer»

Right ANSWER is (a) Class at 1st LEVEL

Explanation: The class with HIGHEST degree of abstraction will be the class at the 1st level. You can look at a SIMPLE example like, a CAR is more abstract than SPORTS CAR class. The level of abstraction decrease with each level as more details comes out.



Discussion

No Comment Found

Related InterviewSolutions