@ -65,6 +65,8 @@ public class Car extends BaseClass implements Comparable<Car>{
@@ -65,6 +65,8 @@ public class Car extends BaseClass implements Comparable<Car>{
protectedintmaxSpeedReverse=0;
protectedbooleanorientation=FORWARD;
protectedlongdistanceCounter=0;
privatebooleanisFirst,isLast;
publicCar(Stringname){
this(name,null);
@ -146,6 +148,24 @@ public class Car extends BaseClass implements Comparable<Car>{
@@ -146,6 +148,24 @@ public class Car extends BaseClass implements Comparable<Car>{
@ -100,23 +101,24 @@ public class Locomotive extends Car implements Constants{
@@ -100,23 +101,24 @@ public class Locomotive extends Car implements Constants{
@ -178,7 +180,12 @@ public class Locomotive extends Car implements Constants{
@@ -178,7 +180,12 @@ public class Locomotive extends Car implements Constants{
@ -222,7 +229,7 @@ public class Locomotive extends Car implements Constants{
@@ -222,7 +229,7 @@ public class Locomotive extends Car implements Constants{
@ -230,6 +237,10 @@ public class Locomotive extends Car implements Constants{
@@ -230,6 +237,10 @@ public class Locomotive extends Car implements Constants{