Created
November 24, 2016 15:43
-
-
Save Martin-Nyaga/4ca0c42e1e9c23003dfc7cbbd0675616 to your computer and use it in GitHub Desktop.
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
class Animal | |
def initialize(name) | |
@name = name | |
end | |
def make_sound | |
puts "No sound" | |
end | |
end | |
class Dog < Animal | |
def make_sound | |
puts "Woof!" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment