In the model car, you want to express the idea of the car "has-a". You cannot arise from a right hand drive car class or vice versa (a car is a right-hand drive). Instead, you must have two independent classes working together in the outer layer, which (car class) will create and offer the features of the class (the class driver).
đang được dịch, vui lòng đợi..
