From 168cece8e1ec3df3ec6a052f76f7211197f32e5d Mon Sep 17 00:00:00 2001 From: s-ohasi <26-o-m-stella-tecnica@it-college.jp> Date: Thu, 24 Sep 2026 15:41:59 +0900 Subject: [PATCH] =?UTF-8?q?3=E6=97=A5=E7=9B=AE3=E6=AE=B5=E9=9A=8E=E7=9B=AE?= =?UTF-8?q?=E5=AE=8C=E4=BA=86=E3=81=97=E3=81=BE=E3=81=97=E3=81=9F=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- em-oop/src/Day3Check3.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 em-oop/src/Day3Check3.java diff --git a/em-oop/src/Day3Check3.java b/em-oop/src/Day3Check3.java new file mode 100644 index 0000000..4efc578 --- /dev/null +++ b/em-oop/src/Day3Check3.java @@ -0,0 +1,17 @@ + +public class Day3Check3 { + + public static void main(String[] args) { + // TODO 自動生成されたメソッド・スタブ + + //Shape型の変数shapeにradius引数2のCircle代入 + Shape shape1 = new Circle(2); + shape1.showInfo(); + + //Shape型の変数2に引数(widthが3、heightが4)を代入する + Shape shape2 = new Rectangle(3, 4); + shape2.showInfo(); + + } + +}