2段階目(抽象クラスとインターフェースを使ってみよう)
This commit is contained in:
14
em-oop/src/Day3Check2.java
Normal file
14
em-oop/src/Day3Check2.java
Normal 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());
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user