Skip to content

Instantly share code, notes, and snippets.

@ahirschberg
Created January 12, 2015 19:59
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