-
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.
[Week3][Chap11] 다형성 - 역할과 구현 예제2 (#26)
- Loading branch information
Showing
3 changed files
with
35 additions
and
3 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
16 changes: 16 additions & 0 deletions
16
임준형/java-basic/src/main/java/week3/poly/car0/Model3Car.java
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,16 @@ | ||
package week3.poly.car0; | ||
|
||
public class Model3Car { | ||
|
||
public void startEngine() { | ||
System.out.println("Model3Car.startEngine"); | ||
} | ||
|
||
public void offEngine() { | ||
System.out.println("Model3Car.offEngine"); | ||
} | ||
|
||
public void pressAccelerator() { | ||
System.out.println("Model3Car.pressAccelerator"); | ||
} | ||
} |