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
8. Oop-Why and were we use Interfacse and Abstract class.
Can I customise the trace output?
how can we achieve language interoperability through CLS? How MSIL works?
Different types of authentication modes in .net framework ?
how to set the startup position of the form?
What are the types of memory management? : Dot net architecture
Do you know textbox and textview controls of .net mobile? : Microsoft dot net mobile
What is the numeric attribute of the textbox control in .net mobile? : Microsoft dot net mobile
Define cache? : Dot net architecture
What is the difference between an application and a program?
Can you explain control extenders?
Explain the difference between l1 and l2 cache? : Dot net architecture
Explain how cache is used? : Dot net architecture
What is Video Streaming in .net??
Does .NET runtime offer Deterministic Destruction or not?