Day3、3段階目完了

This commit is contained in:
m-endo
2026-09-18 14:14:26 +09:00
parent cc5ae0b0b8
commit 0c5fa9f2f1

View File

@@ -0,0 +1,17 @@
public class Day3Check3 {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
//インスタンスを代入
Shape shape1 = new Circle(2);
//メソッド呼び出し
shape1.showInfo();
//インスタンスを代入
Shape shape2 = new Rectangle(3, 4);
//メソッド呼び出し
shape2.showInfo();
}
}