Skip to content

Instantly share code, notes, and snippets.

@shabib87
Last active February 5, 2017 17:06
Show Gist options
  • Save shabib87/5946bc75723572ece692f1df2ea84be1 to your computer and use it in GitHub Desktop.
Save shabib87/5946bc75723572ece692f1df2ea84be1 to your computer and use it in GitHub Desktop.
class SmartBoat: SmartVehicle, RoadDrivable, WaterDrivable {
func driveOnRoad() {
print("Vroom!")
}
func driveOnWater() {
print("I can run over water, because I can! B-)")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment