Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
java multiple inheritence..
Name: srisailamg Date: May 17, 2004 at 22:34:25 Pacific OS: windows CPU/Ram: intel
Comment:
Why java doesn't support multiple inheritence? what advantages it has?
To keep the language simple. They do allow for multiple interface inheritance.
>what advantages it has?
Is that a question or a general statement?
0
Response Number 2
Name: Sanjaya Sugiarto (by Sanjaya) Date: June 4, 2004 at 12:53:43 Pacific
Reply:
Well, I dont agree with gpp.
Java doesnt support multiple inheritance because it want to run safer, stabler and non error-prune.
Just imagine situation like this:
You have a super class named DigitalRecorder and it has method burn(). Than from it would be 2 classes CDBurner and DVDBurner and each inherit the method burn(). Than from these two classes would be ComboDrive and now the problem is: Which burn() method should it use??
Summary: I have created two classes RECTANGLE with attributes Length and Height and PLANERECTANGLE, with various attributes required to specify the rectangle's center, an attribute that can be checked to see i...
Summary: I didn't want you to think that no one cares IR!! I did look for a brief bit. I'm not enough of a trendsetter to be using a new language just because it's there. One thought that left an impression w...
Summary: "O,, could someone tell me how to use the BorlandC++ compiler then?" well, using Borland C++ compiler is not that hard, learn it step by step C++ Basic (not any different witch C basic): - syntax(use ...