RE: Question on derived class?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux