HummerH1Model.java
上传用户:hensond
上传日期:2021-12-27
资源大小:817k
文件大小:1k
- package com.company.section2;
- /**
- * @author cbf4Life cbf4life@126.com
- * I'm glad to share my knowledge with you all.
- */
- public class HummerH1Model extends HummerModel {
- //H1型号的悍马车鸣笛
- public void alarm() {
- System.out.println("悍马H1鸣笛...");
- }
- //引擎轰鸣声
- public void engineBoom() {
- System.out.println("悍马H1引擎声音是这样在...");
- }
- //汽车发动
- public void start() {
- System.out.println("悍马H1发动...");
- }
-
- //停车
- public void stop() {
- System.out.println("悍马H1停车...");
- }
-
- }