correcting the setName method

set the method argument dogsName to name, instead of doggie_name
This commit is contained in:
Subramanian 2014-10-27 09:06:43 +05:30
parent 9fe68559c0
commit 00c4a6324e

View File

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