operator= overloading & inheritance