Skip to content

Instantly share code, notes, and snippets.

@ahirschberg
Created January 13, 2015 01:02
Show Gist options
  • Save ahirschberg/6d08d2a9e9314ca951d7 to your computer and use it in GitHub Desktop.
Save ahirschberg/6d08d2a9e9314ca951d7 to your computer and use it in GitHub Desktop.
Liskov Substitution Principal example 3
# Implementation 3
class Base
def get_number
raise NotImplementedError
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment