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 to make and display a form without title bar?
Explain .net mobile events? : Microsoft dot net mobile
What is the purpose of cache? : Dot net architecture
i wish to write mcts(microsoft certified technology specialist) exam. can anyone give the model question or format and preparation method?
What is the difference between machine config vs. Web config : Dot net architecture
How does .net remoting work?
How to improve the cache performance? : Dot net architecture
What is the purpose of cache? How is it used? : Dot net architecture
How to develop mobile applications using microsoft mobile internet toolkit (mmit) or .net mobile? : Microsoft dot net mobile
Can you explain server controls in atlas?
Explain cache memory? : Dot net architecture
What's new in the .net 2.0 class library?
how we can fire event in databound column in datagrid without using button?
How cache is used? : Dot net architecture
I can't be bothered with cas. Can I turn it off?