Skip to content

Instantly share code, notes, and snippets.

@janakmshah
Last active January 6, 2020 17:29
Show Gist options
  • Save janakmshah/770d43a28e5daf9d3298ea7596a99878 to your computer and use it in GitHub Desktop.
Save janakmshah/770d43a28e5daf9d3298ea7596a99878 to your computer and use it in GitHub Desktop.
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