From what I have and read, a derived class can access all of the non-private members of its base class. My newest assignment works with class derivatives and operator overloading. the assignment states that the derived class inherits all members of the base function. Is this even possible? I would like to know before I question the teacher.....
Does it even make sense to combine operator overloading with polymorphism? In a majority of cases, it does not, so I generally say you should pick one or the other. Trying to mix operator overloading with polymorphism is usually a nightmare and a half because C++ isn't designed to support it.
I'm still confused. I like the idea of polymorphism but lets say, I have a bankaccount class and checkingaccount class that is derived from bankaccount. All of the info, such as accountname, balance, accountnumber, etc...is private. How does the private data, such as balance get assigned to the checkingaccount class?
What is functionally different between a 'bank account' and a 'checking account'? What does 'checking account' add that should not be in 'bank account'? In my opinion, there is no distinction to be made and so you should not need to separate the concepts into two different classes.