P
puzzlecracker
I don't recall whether operators, which are members of the class, are
intherited in subclasses?
thanks
intherited in subclasses?
thanks
puzzlecracker said:I don't recall whether operators, which are members of the class, are
intherited in subclasses?
Victor said:If you meant to ask whether they were inherited, then, yes, they are,
just like any other function.
Correction: except for 'address of', I believe. And keep in mind that
each class has its own operator= that hides any inherited operator=.
V
puzzlecracker said:[..]
What if I make operators virtual in the base class, would they still
be hidden - or according to the standard, operators cannot be
virtual?
What if I make operators virtual in the base class, would they still
be hidden - or according to the standard, operators cannot be
virtual?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.