Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!gatech!gt-eedsp!baud From: baud@gt-eedsp.UUCP (Kurt Baudendistel) Newsgroups: comp.lang.c++ Subject: easy inheritence Keywords: c++, inheritence, derived-classes Message-ID: <612@gt-eedsp.UUCP> Date: 8 Feb 89 18:22:36 GMT Organization: School of Electrical Engineering, Ga. Tech, Atlanta, GA 30332 Lines: 22 a common problem for me is that i'd like to add just a few features to an already established class. how can i do this in the simplest manner? i can ... (1) make new-class a class with a single member of type base-class. (2) make new-class a derived class from base-class with no members. then i can add the new functions to new-class that i want. the problem is that i have to do a lot of useless bookkeeping to pass all of the features of base-class (member functions, friend functions, etc.) on to new-class whichever of these two techniques i use. am i missing something? if not, why isn't there an easy way to do this in c++? kurt -- Kurt Baudendistel --- GRA Georgia Tech, School of Electrical Engineering, Atlanta, GA 30332 uucp: ...!{allegra,hplabs,ulysses}!gatech!gt-eedsp!baud internet: baud%gt-eedsp@gatech.edu