-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
75 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package Director; | ||
|
||
public class HumanJp { | ||
|
||
private LangBase langbase; | ||
|
||
HumanJp(LangBase langbase){ | ||
this.langbase = langbase; | ||
} | ||
|
||
public String Speak(){ | ||
return this.langbase.Speak(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package Director; | ||
|
||
public class HumanJpTranslate extends HumanJp{ | ||
|
||
HumanJpTranslate(LangBase langbase) { | ||
super(langbase); | ||
// TODO Auto-generated constructor stub | ||
} | ||
|
||
public String translate(){ | ||
return "japanease is “ú–{Œê"; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package Director; | ||
|
||
public abstract class LangBase { | ||
|
||
public String langtype; | ||
public abstract String Speak(); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package Director; | ||
|
||
public class LangEn extends LangBase{ | ||
public String langtype; | ||
|
||
LangEn(){ | ||
this.langtype = "English"; | ||
} | ||
|
||
public String Speak(){ | ||
return this.langtype; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package Director; | ||
|
||
public class LangJp extends LangBase{ | ||
public String langtype; | ||
|
||
LangJp(){ | ||
this.langtype = "japanease"; | ||
} | ||
|
||
public String Speak(){ | ||
return this.langtype; | ||
} | ||
|
||
} |