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


Please Help Members By Posting Answers For Below Questions

8. Oop-Why and were we use Interfacse and Abstract class.

1579


Can I customise the trace output?

624


how can we achieve language interoperability through CLS? How MSIL works?

595


Different types of authentication modes in .net framework ?

526


how to set the startup position of the form?

1503






What are the types of memory management? : Dot net architecture

481


Do you know textbox and textview controls of .net mobile? : Microsoft dot net mobile

495


What is the numeric attribute of the textbox control in .net mobile? : Microsoft dot net mobile

520


Define cache? : Dot net architecture

538


What is the difference between an application and a program?

484


Can you explain control extenders?

513


Explain the difference between l1 and l2 cache? : Dot net architecture

542


Explain how cache is used? : Dot net architecture

579


What is Video Streaming in .net??

548


Does .NET runtime offer Deterministic Destruction or not?

591