Tim Peeler on 21 Oct 2003 10:48:02 -0400 |
On Mon, Oct 20, 2003 at 10:17:13PM -0400, Sergey Ostrovsky wrote: <snip /> > > sizeof(Foo) is 4 (which happens to be sizeof(int)). Is my instructor > > full of it > > Yes he is. > From what your saying it's clear he doesn't have a clue. > Me wonders if he ever read Stroustrup. > Ask him what's differnce between plain member function and virtual one, > and how it's implemented. And please share the fun... We recently went over virtual functions, and other than the simple explination that they are functions that are resolved at runtime, we didn't go in-depth into the implementation. I'll ask. Thanks, Tim > > > Sergey. > -- -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GCS d-(+) s:>++:++ a->-- C++++$ UL++++$ P++++$ L++++$ E--- W++(+++)$ N(-) o-- K- w--- !O? M- V-- PS++(+++) PE-- Y++ PGP t+(++) 5 X R tv(--) b+>+++ DI+++ D+(++) G e+>++>+++>++++ h-- r--->+++ y-->+++ ------END GEEK CODE BLOCK------ ___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
|
|