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!

Recommended Answers

All 2 Replies

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...
};

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.