RE: Question on derived class?

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

 



How is that possible, since 'A' does not have a reset method in it?  At
the time he tries to call a->reset(), the compiler won't know the method
can be called.  Shouldn't only methods defined in 'A' be able to be
called on 'a'?

Thanks,
Lyle


-----Original Message-----
From: gcc-help-owner@xxxxxxxxxxx [mailto:gcc-help-owner@xxxxxxxxxxx] On
Behalf Of Eljay Love-Jensen
Sent: Thursday, November 18, 2004 5:20 PM
To: Ishwar Rattan; gcc-help@xxxxxxxxxxx
Subject: Re: Question on derived class?

Hi Ishwar,

Your question is a general C++ question, and off-topic for this forum.

 >Is it possible to access b.reset() using a->reset()?

Yes.

HTH,
--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