By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,988 Members | 2,232 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,988 IT Pros & Developers. It's quick & easy.

About MutipleInheritance

P: n/a
Could you tell me the advantage of MutipleInheritance???
Jul 22 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"Well81" <we****@163.net> wrote in message
news:6f**************************@posting.google.c om...
Could you tell me the advantage of MutipleInheritance???


Compared to what?

Anyway, I find it comes up fairly rarely, mostly with polymorphism. I use it
in my uvs (univaritate statistics) library for giving some classes more than
one interface. For instance I have an interface for distributions and an
interface for sample statistics. A histogram has the characteristics of a
sample statistic and a distribution, so I use multiple inheritance. Follow
the link in my sig if you want to see examples.

--
Cy
http://home.rochester.rr.com/cyhome/
Jul 22 '05 #2

P: n/a
we****@163.net (Well81) wrote in message news:<6f**************************@posting.google. com>...
Could you tell me the advantage of MutipleInheritance???


Well, the very idea of inheritance can be better understood from the
natural evolution. Take the example of a child's birth. The child's
physilogical characteristics in one way or the other are influenced by
those of the parents. Shouldn't we call these characteristics
inherited??

I feel, it holds good for any kind of objects' hierarchy
representation. We tend to find an object which has features common
to two or more different classes?.

- Vijay
Jul 22 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.