Created
January 12, 2015 19:59
-
-
Save ahirschberg/ace758447a35efbae831 to your computer and use it in GitHub Desktop.
Liskov Substitution Principal example 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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