3段階目(ポリモーフィズムを体感しよう)

This commit is contained in:
s-sakiyama
2026-09-16 13:21:23 +09:00
parent 551f5a4fe2
commit e8648e7d8b

View File

@@ -0,0 +1,11 @@
public class Day3Check3 {
public static void main(String[] args) {
Shape shape1 = new Circle(2);
shape1.showInfo();
Shape shape2 = new Rectangle(3, 4);
shape2.showInfo();
}
}