Last active
March 7, 2018 01:03
-
-
Save PaleoGuy2012/057d68bd7e64a752b621624b3642441c to your computer and use it in GitHub Desktop.
Quiz #3
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 | |
attr_accessor :name, :breed | |
def initialize(name, breed) | |
@name= name | |
@breed= breed | |
end | |
def to_s | |
"#{name} is a #{breed}." | |
end | |
end | |
fido=Dog.new("Max", "Pitbull") | |
puts fido |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment