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
Different types of authentication modes in .net framework ?
What is difference between .net and visual studio?
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
How can I create a application?
8. Oop-Why and were we use Interfacse and Abstract class.
What is Object Caching in Visual Studio 2010?
How does .net remoting work?
Explain is development of a mobile web application with asp.net is very easy? : Microsoft dot net mobile
Explain some of the disadvantages due to microsoft.net?
What is the difference between machine config vs. Web config : Dot net architecture
How to implement the display in the class printdoc (how to resolve the naming conflict) a: no naming conflicts
what is inheritancy where u required ?
how to change row background color in gridview
Explain cache? : Dot net architecture
Explain the Lapsed Listener problem in .net