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

if there are two application 1 and 2 having a variable x in both app if client1 changes value of x in 1 app client 2 want reads the value of x from 2 app what resultant value will he get

1853


Explain different pipelining hazards and how are they eliminated? : .NET Architecture

503


Waht is Dot net Arcitecture

1952


Explain write back and write through caches? : .NET Architecture

516


deference between display and visibility property of CSS

1786






Explain the components required to develop mobile applications with .net mobile? : Microsoft dot net mobile

459


Explain the difference between inprocess vs out process session state : Dot net architecture

518


Define cache? : Dot net architecture

546


How resource files are used in .net?

543


Explain the Lapsed Listener problem in .net

665


Describe the Managed Execution Process in .NET?

531


Explain .net mobile input controls? : Microsoft dot net mobile

480


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

596


State and explain about microsoft.net?

525


What are bindings?

552