About Me

My photo
"Practise makes man Perfect" My Advice is :No need special books for java.. ok

Thursday, 7 April 2011

what is difference between Abstract class and interface ????

An Abstract Class can contain default Implementation where as an Interface should not contain any implementation at all. An Interface should contain only definitions but no implementation. where as an abstract class can contain abstract and non-abstract methods. When a class inherits from an abstract the derived class must implement all the abstract methods declared in the base class. an abstract class can inherit from another non-abstract class.

1 comment: