Last active
January 6, 2020 16:03
-
-
Save janakmshah/fd3a9d06b2c7f1b1114cc19875ed95f9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
class Vehicle { | |
func refuel() | |
} | |
class Car: Vehicle { | |
func drive() | |
} | |
class CleanerCar: Car { | |
func cleanVehicle() //DUPLICATE | |
} | |
class Motorbike: Vehicle { | |
func ride() | |
} | |
class Robot { | |
func findVehicle() | |
} | |
class Mechanic: Robot { | |
func maintainVehicle() | |
} | |
class Cleaner: Robot { | |
func cleanVehicle() //DUPLICATE | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment