| | |
Multiple Inheritence
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Apr 2008
Posts: 1,027
Reputation:
Solved Threads: 151
I'm not sure what distinction you are trying to make here. A class can only extend one class. That class, in turn, can only extend one class, etc all the way to Object.
Consider
class A {...}
which is exactly the same as
class A extends Object {...}
then
class B extends A {...}
class C extends B {...}
...
class Z extends Y {...}
It would be totally misleading to say "class Z extends Y and Object" without mentioning B..Y
Consider
class A {...}
which is exactly the same as
class A extends Object {...}
then
class B extends A {...}
class C extends B {...}
...
class Z extends Y {...}
It would be totally misleading to say "class Z extends Y and Object" without mentioning B..Y
![]() |
Similar Threads
- Multiple webcams (USB Devices and other Peripherals)
- Search with multiple search terms used (PHP)
- does java support Multiple inheritence via interfaces (Java)
- Inheritance (Java)
- hi uegent (C#)
- QuickSort (Computer Science)
Other Threads in the Java Forum
- Previous Thread: Error Scanner Loading
- Next Thread: HELP<!>Program doesn't get user input from the 2nd Textfield(KAEquation)
Views: 354 | Replies: 11
| Thread Tools | Search this Thread |
Tag cloud for Java
6 android api apple applet application arguments array arrays automation binary bluetooth bold byte c++ chat class classes client code component coordinates database datagram doctype draw eclipse educational error event exception file fractal froglogic game givemetehcodez graphics gui helpwithhomework html ide ideas image ingres input integer internet intersect ip j2me java javaexcel javaprojects jmf jni jpanel jtextarea julia linux list loop map method methods mobile netbeans newbie nextline number object oracle pong print problem program programming project recursion recursive scanner screen sell server set size sms socket sort sql string swing test threads time transfer tree user web websites windows






