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

what is sessions and cookies take one example simple way to understand

2042


Describe the advantages of writing a managed code application instead of unmanaged one. What is involved in certain piece of code being managed?

787


What is textbox control of .net mobile? : Microsoft dot net mobile

788


Is .net easier than java?

675


What is msil, and why should my developers need an appreciation of it if at all?

739






Difference between type constructor and instance constructor?

743


What re interop services?

749


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

642


4. Wcf- what Asych and Sych call and how that works

1613


what are the fundamental and common properties of .net controls?

1800


What's new in the .net 2.0 class library?

707


How to improve the cache performance? : Dot net architecture

677


Explain about generation?

724


how to add list of items in a web application and win application?

1765


What is the application frame host?

703