Suppose I have two classes A, and B. B is derived from A. A has no data members, however B has two integer members.
If I define a method in class A, like the following:
void CopyFrom( const A* other )
{
*this = *other;
}
And call it in the child class, will the integer data member get copied?