1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-22 22:33:29 +02:00

Merge pull request #827 from subbul/patch-1

correcting the setName method
This commit is contained in:
Levi Bostian
2014-10-26 22:47:05 -05:00

View File

@@ -305,7 +305,7 @@ void Dog::Dog()
// if you are modifying them or const reference if you are not. // if you are modifying them or const reference if you are not.
void Dog::setName(const std::string& dogsName) void Dog::setName(const std::string& dogsName)
{ {
name = doggie_name; name = dogsName;
} }
void Dog::setWeight(int dogsWeight) void Dog::setWeight(int dogsWeight)