Reading about Inheritance I don't quite understand the following
My question is, what is realy going on here? itsAge and itsWeight are both member variables of the Mammal class. Is this Inheritance and why would a class try to inherit from itself?Code:Mammal::Mammal(): itsAge(1), itsWeight(5)
{
cout << "Mammal constructor...\n";
}
Can someone please explain?