us bank flexperks最近retention有没有dp# Money - 海外理财
S*C
1 楼
第二个是design problem 不用写代码,给 car Honda, color, engine, Vehicle(单车
也包括在内) drive.让写他们之间的关系。
写几句话就可以了。
____________
Vehicle is an interface which declares a method drive().
Car Honda is abstract class that extends Vehicle. Car also has engine and
color as member variable.
The relationship between Vehicle and Car is inheritance.
The relationship between engine/color and Car is composition.
也包括在内) drive.让写他们之间的关系。
写几句话就可以了。
____________
Vehicle is an interface which declares a method drive().
Car Honda is abstract class that extends Vehicle. Car also has engine and
color as member variable.
The relationship between Vehicle and Car is inheritance.
The relationship between engine/color and Car is composition.