mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-05 06:17:36 +02:00
correcting the setName method
set the method argument dogsName to name, instead of doggie_name
This commit is contained in:
@@ -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)
|
||||||
|
Reference in New Issue
Block a user