This example is quite banal and easy to do, but what if I had many variables in A? Isn't there a way for me to call A::operator= from within B::operator=, and let it take care of whatever was in the base class? I mean, I know I can literally call A::operator=, but then A would have to have an A::operator=(B& obj) as well. Isn't there a way of using the fact that B inherits from A and let A::operator= deal with the parts of B that it inherited, while B::operator= deals with the rest?
Or does B::operator= need to deal with all the elements, including those passed down by the parent class?