Created
January 6, 2020 15:42
-
-
Save janakmshah/e867b542546a6b62b20a483d5f5845d0 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 Motorbike: Vehicle { | |
func ride() | |
} | |
class Robot { | |
func findVehicle() | |
} | |
class Mechanic: Robot { | |
func maintainVehicle() | |
} | |
class Cleaner: Robot { | |
func cleanVehicle() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment