I have some questions, some might seem kind of dumb, but we're studying overloading operators and inheritance/polymorphing. I'm having trouble finding some references on some things to show me how to do this stuff or why I'm doing it a certain way.
what kind/type of binary operators can I use if I want the left operand to be a primitive type and the right operand to be a class? I've been through three books and several websites, I cannot find a direct reference to this
When I'm writing an inherited class (one of my current labs) is the constructor inherited from the base class or will I need to do something in the derived class for it?
In this same lab, it says to use a temporary variable when I use an operator that returns it's own class type. Is there a good reason for this other than she just wants it that way?
Again in this inheritance lab, I'm trying to derive several classes, can I derive them from the same base or will I need to make one of my derived classes a "base" class for the rest?
I'm also having some trouble with my vector class, but I don't have enough code to post yet, I'm still trying to understand the "container" concept.
Thanks for anyone's input on these, even if it's a reference I can look up myself, I just want to know because these seem to be two very big issues with classes that I'm having trouble wrapping my head around