1.

Which among the following is the most abstract form of class?(a) Cars(b) BMW cars(c) Big cars(d) Small carsI had been asked this question in an interview.My question is based upon Class Use topic in division Classes of Object Oriented Programming

Answer» CORRECT option is (a) Cars

The explanation: The most abstract class is class Cars. The class Cars is the most general FORM of all other cars. If it is a BRAND of car, it comes under car. If it is the TYPE of car then ALSO it comes under Cars.


Discussion

No Comment Found

Related InterviewSolutions