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 is the using() pattern useful? What is idisposable?
What are library functions?
Explain the race around condition? : Dot net architecture
Explain dotnet framework ?
What is IL code, CLR, CTS, GAC & GC?
What are the types of memory management? : Dot net architecture
What is one way operation?
Can you explain server controls in atlas?
How do I write to the application configuration file at runtime?
What is .net mobile lists. Explain with an example? : Microsoft dot net mobile
What is the purpose of Treeview control?
5. Wcf- Session Managment
Can you explain update progress control?
Why only boxed types can be unboxed?
What is the difference between primary & secondary storage device? : Dot net architecture