Kaustubh. Mumbai, India.
Originally posted by Dani�l Maree:
i've also found that most of the use of multiple inheritance can be gained by simply extending B which extends A instead of extending both A and B. this also avoids the pitfalls of multiple inheritance
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Jos A. Horsmeier:
When multiple inheritance rears its ugly head, I always use the following example for discussion:
class Appliance { ... }
class Clock extends Appliance { ... }
class AlarmClock extends Clock { ... }
class Radio extends Appliance { ... }
class AlarmClock Radio extends ???
kind regards
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Younes
By constantly trying one ends up succeeding. Thus: the more one fails the more one has a chance to succeed.
Originally posted by Younes Essouabni:
But how do you decide if it's a radio that has an alarm clock, or an alarm clock that has a radio?
Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Originally posted by Younes Essouabni:
But how do you decide if it's a radio that has an alarm clock, or an alarm clock that has a radio?
I'm aware that it's not really important here, but sometimes it's hard to decide which one is the more suitable.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |