1.

To group all the brands of cars, what should be used?(a) Class(b) Structure(c) Function(d) Object

Answer» The correct choice is (a) Class

Easy explanation - A class can be used to group all the brands of cars. The Different brands may have different properties but all will have some common properties like number of wheels and doors, accessories etc. All of those properties can be grouped into a single class representing all the cars.


Discussion

No Comment Found

Related InterviewSolutions