Difference between abstract class and interface
Answer Posted / maneswari
Interfaces provide a form of multiple inheritance. A class
can extend only one other class.
Interfaces are limited to public methods and constants with
no implementation. Abstract classes can have a partial
implementation, protected parts, static methods, etc.
A Class may implement several interfaces. But in case of
abstract class, a class may extend only one abstract class.
Interfaces are slow as it requires extra indirection to to
find corresponding method in in the actual class. Abstract
classes are fast.
| Is This Answer Correct ? | 439 Yes | 93 No |
Post New Answer View All Answers
What is the numeric attribute of the textbox control in .net mobile? : Microsoft dot net mobile
where should I put this information then?
Name some changes done since version 3.0?
Explain the difference between l1 and l2 cache? : .NET Architecture
Can I create my own permission set?
How will you do windows authentication and what is the namespace?
Define cache coherency? : Dot net architecture
What are the options provived by vss to the user? how it will help us while delevoping application?
How do I prevent concurrent access to my data?
What is different about namespace declaration when comparing that to package declaration in java?
How does .net mobile work? : Microsoft dot net mobile
What are relation objects in dataset?
What is the problem with .net generics?
Explain domestic architecture artifacts? : Dot net architecture
What is a virtual memory? : .NET Architecture