汽车(Car)由轮子、发动机、油箱、座椅、方向盘等组成。那么car类和其他类(Wheel、Engin、Tank、Chair、SteeringWheel)之间的关系是什么?( )
聚合关系
举一反三
- 汽车的类由轮子、发动机、油箱、座椅等组成,那么汽车类和其他类之间的关系是() A: 关联关系 B: 泛化关系 C: 实现关系 D: 依赖关系
- 车身层名为“Car”,有从左向右的位移运动。两个轮子是车身的子层,如果需要轮子根据车身运动速度而旋转,应该给轮子的旋转属性添加什么表达式? A: thisComp.layer("Car").transform.position[0] B: thisComp.layer("Car").transform.position[1] C: thisComp.layer("Wheel).transform.position[0] D: thisComp.layer("Car").transform.Rotation[0]
- 计算机(Computer)由中央处理器、内存、软盘、硬盘、显示器、键盘、鼠标等组成。那么Computer类和其他类(CPU 、 RAM 、 FloppyDrive 、 HardDisk 、 Monitor 、 Keyboard、 Mouse)之间的关系是什么?( )
- 小惠定义了一个汽车类(Car),包含的属性有:颜色(color)、型号(type)、品牌(brand)。现在小强要在main( )方法中创建Car类的对象,在他的编码中,( )是正确的。 A: Car myCar=new Car(); myCar color="黄色”; B: Car myCar=new Car(); myCar.brand="宝马"; C: Car myCar; myCar.color="黄色"; D: Car myCar=new Car(); color="黄色";
- The apparatus that reduces friction from the wheel/rail interface to the car gives passengers in a car a smoother ride.
内容
- 0
以public修饰的类如:public class Car{…} 则Car ( )
- 1
假设有一个类 Car ,则可以使用 dim c as new car 定义类的对象的语法格式( )。
- 2
设计一个汽车类Vehicle,包含数据成员车轮数和车重,由它派生出类Car和类Truck,前者包含载客数,后者包含载重量。编写程序实现。
- 3
Bruce Stephen gripped the ________ wheel hard as the car bounced up and down.
- 4
C#中Car为一自定义类,其中有以下方法定义public void Auto(){…}使用以下语句创建了该类的一个对象c1:Car c1=new Car();那么,调用Car的Auto方法为 A: c1.Auto() B: c1::Auto C: Car.Auto() D: Car::Auto()