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

Define the mesi? : Dot net architecture

536


What is the importance of updatepanel control?

537


Which software is used for .net programming?

522


What is the purpose of cache? : Dot net architecture

532


What is a service class?

535






Describe the Managed Execution Process in .NET?

533


Define dma? : Dot net architecture

546


What are the major differences between services and web services?

493


What is gui programming? : .NET Architecture

503


Explain how to develop mobile applications using microsoft mobile internet toolkit (mmit) or .net mobile? : Microsoft dot net mobile

500


Tell me .net mobile emulators? : Microsoft dot net mobile

551


How do I write to the application configuration file at runtime?

522


The maximum report processing jobs limit configured by your system administrator has been reached.How I can Solve this problem when i using crystal report to load from my application.

14065


What is .net mobile images control. : Microsoft dot net mobile

491


Define an interrupt? : Dot net architecture

550