Created
February 21, 2017 18:06
-
-
Save Phoenix23A/3aaabeb5c5429706ed19e601f978fb7c 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 Dog < Pet | |
def speak | |
puts "Woof!" | |
end | |
end | |
puppy = Dog.new("black", "Staffordshire Terrier") | |
puppy.speak | |
puts puppy.breed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment