To group all the brands of cars, what should be used?

To group all the brands of cars, what should be used?
A. Class
B. Structure
C. Function
D. Object
 
Answer: a
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.
 

Tìm kiếm

Back
Top