Difference

India
February 22, 2007 3:39am CST
Between abstract and interface?
1 person likes this
3 responses
@raghwagh (1527)
• India
4 Mar 07
The basic difference is that abstract is partly abstract while interface is fully abstract.An abstract class can have non abstract methods, but it cannot be instantiated.An interface is fully abstract ie it contains only datamembers and method signature without body.
1 person likes this
• India
1 Mar 07
1.)abstract classes allows the concrete method(own method, not a abstract method).but interfaces does not allows the concrete method.(only abstract method). 2.).By default variable defined within the interfaces are "static and final".but in abstract classes may be anything.
1 person likes this
• India
7 Mar 07
we can say that interface is the enhanced version of abstract. ot interface is the extension of abstract. further implementaion point of view differ in both cases, and the disigning cases are also differ. both r two different entity and can not take over each other