adspace


Difference between abstract class and interface in .net?

Answer Posted / Avnish Kumar Awasthi

An Abstract Class can have implemented methods as well as abstract methods, whereas an Interface contains only abstract members. An Abstract Class can be inherited and its non-abstract methods can be overridden, while an Interface is meant to be implemented by other classes. In essence, abstract classes are a base for inheritance, whereas interfaces are a contract that a class agrees to implement.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write the .net syntax for 'while loop'?

1143