dkj4jdk
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Do we? I have never heard of multi-level inheritance. Where did you get that quote from?Deepak Kumar Jena wrote:We all know that Java does not support multiple inheritance rather it supports multi-level inheritance through the use of interface . . .
No, that isn't multiple inheritance. You can only extend one class. Your class in that case does not extend java.lang.Object. It extends something else which . . . extends java.lang.Object. That isn't multiple inheritance at all.Deepak Kumar Jena wrote: . . . when we are extending from another super class automatically it results in multiple inheritance (extending two classes...java.lang.Object and xxx.xxx.xxx. . . .
SCJP6.0,My blog Ranchers from Delhi
SCJP 6 [SCJP - Old is Gold]
dkj4jdk
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
dkj4jdk
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
dkj4jdk
Deepak Kumar Jena wrote: If you have the reference be kind enogh to forward it to me
Java 6 API wrote: Class Object is the root of the class hierarchy. Every class has Object as a superclass. All objects, including arrays, implement the methods of this class.
Everyday in every way, we get a little better.
dkj4jdk
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
dkj4jdk
Can we say like this.....!
The extends keyword is like a single inheritance ticket, when our class does not extends from any existing class it is passed to the java.lang.Object by our class as inheritance request. But as the class extends from any other class the ticket is passed to the super class rather than the class java.lang.Object. This process goes till the very super class which doesn't extends any other class and ultimately its inheritance ticket is with java.lang.Object. In this way the concept of singleton inheritance is mainteined with acquiring properties from both the classes.
I hired a bunch of ninjas. The fridge is empty, but I can't find them to tell them the mission.
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|