Difference between abstract class and interface

Answer Posted / amit sinha

a) Interface force class to implement all methods and
function for implement while as Abstarct class does not
force class , you can override method and fuction of base
class .
b) Interface contains method and function without
implemention with signature only while as Abstract class
contains method , function with implemention and signature
c) By default , method ,function and members is public in
nature within interface , while as In Abstract class ,
memebers can be protected as well private etc..
d) Interface supports Multiple inheritance while as
Abstract class does not support Multiple Inheritance
e)Abstract classes are faster than interfaces
f)you can prevent not required method to override in
Abstract class , but not in Interface

Is This Answer Correct ?    38 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Different types of authentication modes in .net framework ?

701


What is difference between .net and visual studio?

695


IS IT Possible to inherit the AJAX page from child class which(child) is inherit from page class.Because i should apply some security in child class

1722


How can I create a application?

680


8. Oop-Why and were we use Interfacse and Abstract class.

1756






What is Object Caching in Visual Studio 2010?

746


How does .net remoting work?

820


Explain is development of a mobile web application with asp.net is very easy? : Microsoft dot net mobile

694


Explain some of the disadvantages due to microsoft.net?

726


What is the difference between machine config vs. Web config : Dot net architecture

681


How to implement the display in the class printdoc (how to resolve the naming conflict) a: no naming conflicts

805


what is inheritancy where u required ?

1705


how to change row background color in gridview

714


Explain cache? : Dot net architecture

746


Explain the Lapsed Listener problem in .net

825