Last active
January 6, 2020 17:29
-
-
Save janakmshah/770d43a28e5daf9d3298ea7596a99878 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 GlobalObject { | |
func cleanVehicle() | |
} | |
class Vehicle: GlobalObject { | |
func refuel() | |
} | |
class Car: Vehicle { | |
func drive() | |
} | |
class CleanerCar: Car {} | |
class Motorbike: Vehicle { | |
func ride() | |
} | |
class Robot: GlobalObject { | |
func findVehicle() | |
} | |
class Mechanic: Robot { | |
func maintainVehicle() | |
} | |
class Cleaner: Robot {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment