2段階目(抽象クラスとインターフェースを使ってみよう)

This commit is contained in:
s-sakiyama
2026-09-16 13:12:58 +09:00
parent 03c7af9751
commit 551f5a4fe2
6 changed files with 56 additions and 4 deletions

View File

@@ -0,0 +1,14 @@
public class Day3Check2 {
public static void main(String[] args) {
Rectangle rectangle = new Rectangle(3, 4);
rectangle.showInfo();
Greeting jpGreeting = new JapaneseGreeting();
System.out.println(jpGreeting.hello());
LoudGreeting jpShout = new JapaneseGreeting();
System.out.println(jpShout.shout());
}
}