Skip to content

Instantly share code, notes, and snippets.

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