Skip to content

Add Getter and Setter#12

Open
mclancy96 wants to merge 1 commit into
learn-co-curriculum:masterfrom
mclancy96:new-branch
Open

Add Getter and Setter#12
mclancy96 wants to merge 1 commit into
learn-co-curriculum:masterfrom
mclancy96:new-branch

Conversation

@mclancy96
Copy link
Copy Markdown

This pull request adds getter and setter methods for the name attribute in the Dog class, enabling instances of Dog to have a name that can be set and retrieved.

  • lib/dog.rb: Added a name= method to set the dog's name and a name method to retrieve it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants