3日目2段階目完了しました。

This commit is contained in:
s-ohasi
2026-09-24 15:26:24 +09:00
parent a24fd3a789
commit de5b1ad9be
3 changed files with 26 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
public class Day3Check2 {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Rectangle r = new Rectangle(3, 4);
r.showInfo();
Greeting gre = new JapaneseGreeting();
System.out.println(gre.hello());
}
}

5
em-oop/src/Greeting.java Normal file
View File

@@ -0,0 +1,5 @@
public interface Greeting {
String hello();
}

View File

@@ -0,0 +1,10 @@
//
public class JapaneseGreeting implements Greeting{
@Override
public String hello() {
// TODO 自動生成されたメソッド・スタブ
return "こんにちは";
}
}