Can some explain me clearly. I am little bit confused ?
[My Blog]
All roads lead to JavaRanch
Christophe Verré wrote:"Java does not support multiple inheritance" doesn't take into account the very special Object class.
Ernest wrote:I think the best way to explain it is to simply say that a class can directly extend only one other class.
Sarada wrote:But from the developer perspective it resitcts multiple inheritance . Am I right ?
[My Blog]
All roads lead to JavaRanch
Java does not support multiple inheritance" doesn't take into account the very special Object class.
sarada srinivas wrote:
You all mean Java internally support multiple inheritance (Sincemy class has already extended Object class( implicitly) + class A which is multiple inheritance )
But from the developer perspective it resitcts multiple inheritance . Am I right ?
Mike Simmons wrote:The problem is that Christophe makes it sound like multiple inheritance is a special property of the Object class.
[My Blog]
All roads lead to JavaRanch
Christophe Verré wrote:
Mike Simmons wrote:The problem is that Christophe makes it sound like multiple inheritance is a special property of the Object class.
I don't know where I made it sound like this. Can you enlighten me on this ?
"Java does not support multiple inheritance" doesn't take into account the very special Object class.
Mike wrote:The problem is that Christophe makes it sound like multiple inheritance is a special property of the Object class. What EFH is pointing out is that no, multiple indirect inheritance can be a property of any class, and multiple direct inheritance is not possible even with Object. It's a minor point, but I do think Christophe's statement is misleading in this respect.
[My Blog]
All roads lead to JavaRanch
David Newton wrote:I don't know, this:
"Java does not support multiple inheritance" doesn't take into account the very special Object class.
does kind of make things confusing--because it still doesn't support multiple inheritance, whether or not you pay attention to the Object class.
[My Blog]
All roads lead to JavaRanch
sarada srinivas wrote:You all mean Java internally support multiple inheritance (Sincemy class has already extended Object class( implicitly) + class A which is multiple inheritance )
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
this llama doesn't want your drama, he just wants this tiny ad for his mama
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|