Thanks and Regards,
SCJP 1.5 (90%), SCWCD 1.5 (85%), The Jovial Java, java.util.concurrent tutorial
Originally posted by bakiyalakshmi dhanraj:
hi all,
why java does not support multiple inheritance,i need exact answer..
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Originally posted by bakiyalakshmi dhanraj:
hi all,
why java does not support multiple inheritance,i need exact answer..
Originally posted by Gavin Tranter:
I think, and this is my personal view, that thinking of interfaces as a method of multiple inheritance is "wrong".
"Should array indices start at 0 or 1? My compromise of 0.5 was rejected without, I thought, proper consideration."- Stan Kelly-Bootle
Originally posted by David McCombs:
I agree. It is possible for a class to implement 2 interfaces with the same method signature, so the chances of the DDD is still possible.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Originally posted by Fred Rosenberger:
I disagree. interface 1 says "you will have a method called THIS that takes THESE parameters"
interface 2 says "you will have a method called THIS that takes THESE parameters"
Where is the conflict? the problem with the DDD is that it's hard to know which of the two implemented methods to actually run. but with interfaces, the method is only implemented once, so there is no ambiguity.
"Should array indices start at 0 or 1? My compromise of 0.5 was rejected without, I thought, proper consideration."- Stan Kelly-Bootle