Hi,
Can you let me know the difference between Abstract class and
interface. I did research on the topic and found it helpful. Well, the
refined question I have is
1. Is there any difference between abstract class for which all the
methods are declared abstract and then an interface. I know that with
interface, multiple inhertiance can be achieved.
Can you please tell me in object tree/method invocation view.
thanks in advance
Raanan - 23 Oct 2006 16:26 GMT
Well,
I'm not an expert but if I remmber correctly..
the interface is only definitions of functions..
a new class can implements mulitiple interfaces...
an abstract class is like an unfinnished class... :) lets you implement
some of the functions by your self but some of the functions might be
already implemented and even private.
and I think you can use only abstarct class to father your new class.
Raanan,
http://www.infoservicesonline.com
> Hi,
> Can you let me know the difference between Abstract class and
[quoted text clipped - 6 lines]
>
> thanks in advance
Tor Iver Wilhelmsen - 23 Oct 2006 16:40 GMT
> Can you let me know the difference between Abstract class and
> interface.
An abstract class can contain method implementation, instance fields,
constructors and static methods. An interface cannot. An abstract
class is part of the single-inheritance chain, an interface is not.
impaler - 23 Oct 2006 16:44 GMT
> Hi,
> Can you let me know the difference between Abstract class and
> interface.
http://mindprod.com/jgloss/interfacevsabstract.html