Question on derived class?

Eljay Love-Jensen eljay@adobe.com
Fri Nov 19 01:02:00 GMT 2004


Hi Lyle,

 >How is that possible, since 'A' does not have a reset method in it?

It is possible.  By putting the virtual reset() method in the A interface 
class.

(Obviously, I didn't go into details as to the implementation.  Ishwar's 
question only asked if it was possible or not.)

 >Shouldn't only methods defined in 'A' be able to be called on 'a'?

Correct.  :-)

Sincerely,
--Eljay



More information about the Gcc-help mailing list