If you were asked to describe the techniques to C++ would you talk about like, Inheritence, Re-use etc or something else? I don't understand :(

Help please!

8 Years
Discussion Span
Last Post by firstPerson

I find the concept of polymorphism (inheritance) to be a quite interesting topic.. although I am by no means an expert in this (I just do enough of this to get by) I believe it is a powerful OOP concept and in my opinion, is probably the main construct that defines OOP languages.

class women
     //Attributes common to all women
     //functions common to all women

class blondes : public women
     //Now you get all the womanly stuff
     //plus 'blonde' attributes and behaviors

class brunetts : public women
     //Brown hair
     //Nice rear end
     // etc etc...

Edited by Clinton Portis: male chauvinist pig with feelings.


Talk about classes, inheritance, polymorphism, generic meta programming, virtual and pure virtual functions, operator overloading...
and also about the potentially bad problems like "multiple inheritance" and the ways to solve it.

Edited by firstPerson: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.