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 sessions and cookies take one example simple way to understand
Describe the advantages of writing a managed code application instead of unmanaged one. What is involved in certain piece of code being managed?
What is textbox control of .net mobile? : Microsoft dot net mobile
Is .net easier than java?
What is msil, and why should my developers need an appreciation of it if at all?
Difference between type constructor and instance constructor?
What re interop services?
What are the types of memory management? : Dot net architecture
4. Wcf- what Asych and Sych call and how that works
what are the fundamental and common properties of .net controls?
What's new in the .net 2.0 class library?
How to improve the cache performance? : Dot net architecture
Explain about generation?
how to add list of items in a web application and win application?
What is the application frame host?