1段階目終わりました

This commit is contained in:
2026-09-16 13:27:39 +09:00
parent 6468a372ce
commit 101991f33d
3 changed files with 44 additions and 0 deletions

16
em-oop/src/Shape.java Normal file
View File

@@ -0,0 +1,16 @@
public class Shape {
private String name;
public Shape(String name) {
this.name = name;
}
public double area() {
return 0.0;
}
public void showInfo() {
System.out.println(this.name + "の面積は" + this.area() + "です");
}
}