Skip to content

Instantly share code, notes, and snippets.

@ahirschberg
Created January 12, 2015 19:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahirschberg/ace758447a35efbae831 to your computer and use it in GitHub Desktop.
Save ahirschberg/ace758447a35efbae831 to your computer and use it in GitHub Desktop.
Liskov Substitution Principal example 1
# Implementation 1
class Base
## returns a positive integer from 1..100, inclusive
def get_number
5
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment