Created
January 29, 2010 16:58
-
-
Save ubermuda/289887 to your computer and use it in GitHub Desktop.
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
<?php | |
class CarSport extends Car | |
{ | |
public function getMaxSpeed() | |
{ | |
return 230; | |
} | |
} | |
class Car1980 extends Car | |
{ | |
public function getMaxSpeed() | |
{ | |
return 120; | |
} | |
} |
Certainly yes :)
Please give me 10 more years to finish this review.
with pleasure
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think speed should be a value object.