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
How resource files are used in .net?
What are relation objects in dataset?
What is the difference between an application and a program?
What happens to the winfx technologies?
What is the numeric attribute of the textbox control in .net mobile? : Microsoft dot net mobile
What is .net mobile input validation. Explain with an example? : Microsoft dot net mobile
What is one way operation?
Explain domestic architecture artifacts? : Dot net architecture
What is code access security (cas)?
What's the difference between an application and a program?
What is an interrupt? : .NET Architecture
Explain write back and write through caches? : Dot net architecture
Why am I getting an invalidoperationexception when I serialize an arraylist?
What is the application frame host?
Explain how does .net mobile work? : Microsoft dot net mobile