Difference between abstract class and interface
Answer Posted / thakur laxmikant
1. Abstract class can have implemented methds
but interface contains only final varibles and
method declaration(signature);
2. In Abstract class there is "IS A " Kind of relationship
between abstract class and its implemented method class
but in interface it can be between any non-relative
classes.
3. Absrtact class can be extended by only one class;
Interface can be implemented by more than one class;
ie. class can inherit only one abstract class
but class can implement more than one interface.
4.A class implementing an interface has to
implement all the methods of the interface,
but the same is
not required in the case of an abstract Class.
5.Access modifiers (protected, abstract, public, etc. )are
useful in abstract Classes but not in interfaces.
| Is This Answer Correct ? | 20 Yes | 7 No |
Post New Answer View All Answers
Define cache coherency? : Dot net architecture
Explain the difference between primary & secondary storage device? : Dot net architecture
What other than biginteger has been introduced in system.numerics namespace?
What happens to the winfx technologies?
Session State and can i store desirialized object in state server, if yes how and if not why.
what are the events for a form?
inprocess vs out process session state : Dot net architecture
What is new in the .net 2.0 class library?
Explain about appdomains?
What is .net mobile images control. Explain with an example? : Microsoft dot net mobile
Explain the Lapsed Listener problem in .net
Can you explain scriptmanager control?
Define an interrupt? : Dot net architecture
What is gui programming? : .NET Architecture
Whate are resource files? How are they used in .net?