hi i am new to java….moved from objective c (iphone background)
all we know that
here we cannot use multiple inheritance….
alternative way is interface……
my question is…… does inheritance through interfaces make any sense…because we have to define the code of function in our class…….only helping part here is variables…
it is like a single .h class in objective c…
i am talking about only functions of that interface…why to declare there….just to save 2 or three lines…that’s it..
please tell why there is no multiple inheritance(simple reason…).
i know this may be a bad question to ask but………
i am in little bit of dark please help…..
I love this answer from Stephan Schmidt. He clearly explains about this:
http://codemonkeyism.com/java-interview-questions-mutliple-inheritance/(link defunct).