Skip to content

Commit bec09a2

Browse files
Aseem JainAseem Jain
authored andcommitted
first changes on MVC
1 parent 6fab794 commit bec09a2

File tree

1 file changed

+4
-3
lines changed
  • MediatorPatternExamples/src/com/premaseem/mediator/atc

1 file changed

+4
-3
lines changed

MediatorPatternExamples/src/com/premaseem/mediator/atc/Flight.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
import com.premaseem.mediator.atc.AtcMediator.FlightStatus;
44

55
public class Flight {
6-
6+
77
FlightStatus status;
88
AtcMediator atcMediator=null;
99
public String name;
10-
10+
1111
public Flight(AtcMediator atcMediator, String flightName) {
1212
status = FlightStatus.IN_Q;
1313
name = flightName;
@@ -16,8 +16,9 @@ public Flight(AtcMediator atcMediator, String flightName) {
1616

1717
void grantLandingPermission(){
1818
atcMediator.grantLandingPermission(this);
19+
System.out.println("just added this line for training")
1920
}
20-
21+
2122
void landFlight(){
2223
atcMediator.landFlight(this);
2324
}

0 commit comments

Comments
 (0)