Skip to content

Commit

Permalink
[Week3][Chap11] OCP(Open-Closed Principle) 원칙 (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
toychip committed Feb 13, 2024
1 parent 0662b6f commit 06e9787
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions 임준형/java-basic/src/main/java/week3/poly/car1/NewCar.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package week3.poly.car1;

public class NewCar implements Car {
@Override
public void startEngine() {
System.out.println("NewCar.startEngine");
}

@Override
public void offEngine() {
System.out.println("NewCar.offEngine");
}

@Override
public void pressAccelerator() {
System.out.println("NewCar.pressAccelerator");
}
}

0 comments on commit 06e9787

Please sign in to comment.