How you can differentiate abstract class and interface?
Question:
How you can differentiate abstract class and interface?
Question:How you can differentiate abstract class and interface?
Answer
There are some main difference between abstract and interface are given below:
1.In an abstract we can use sharable code where in the case of interface their is no facility to use sharable code.
2.In which class we implement an interface class. All method that we use should be defined in interface. Where as class those extending an abstract while a class extending an abstract class their is no need to defined methods
in the abstract class.
By:Vivek Date:
How you can differentiate abstract class and interface?