D
dwightarmyofchampions
I'm a bit of a novice to C++ and I'm having a bit of trouble
understanding inheritance and virtual functions. I mean I understand
how one class can inherit a base class so you can have objects of the
derived class inherit the base class's member functions without having
to duplicate a whole bunch of code. But that's just timesaving, and I
know there's a whole lot more to it than that. And I definitely don't
understand how virtual functions can be the "single most important
topic from an OO perspective... C++ without 'virtual' is not OO," as
the C++ FAQ puts it. Could someone please point me to a lengthy book
and/or website that goes really in-depth into it, and preferably with
lots and lots of examples?
understanding inheritance and virtual functions. I mean I understand
how one class can inherit a base class so you can have objects of the
derived class inherit the base class's member functions without having
to duplicate a whole bunch of code. But that's just timesaving, and I
know there's a whole lot more to it than that. And I definitely don't
understand how virtual functions can be the "single most important
topic from an OO perspective... C++ without 'virtual' is not OO," as
the C++ FAQ puts it. Could someone please point me to a lengthy book
and/or website that goes really in-depth into it, and preferably with
lots and lots of examples?