update:demo3

This commit is contained in:
dichgrem
2025-11-14 15:36:43 +08:00
parent d765c1a219
commit c20e8949a5
22 changed files with 310 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
package com.study.demo3;
public class Vehicle {
protected String name;
public Vehicle(String name) {
this.name = name;
}
public Vehicle() {
this.name = "Unknown Vehicle";
}
public void start() {
System.out.println("Vehicle Start");
}
public void stop() {
System.out.println("Vehicle Stop");
}
}