Difference between abstract class and interface

Answer Posted / geetika.......:)

1)all methods in interface need to be defined in class that implemented it.but abstract class may define all some or none of the methods declared in it.
2)abstract class cant instantiate object but class with interface can
3)interface do not have constructors abstract classes have
4)class may implement number of interfaces but can extend only one abstract class
5)variables must be initialized in interface but its not necessary in abstract class.
6)interface has abstract functions but abstract class has abstract as well as concrete functions.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between primary & secondary storage device? : Dot net architecture

705


What does this do? Gacutil /l | find /i "corillian"

783


What is parallel computing?

700


what is the difference between master page and content page?

2305


Explain domestic architecture artifacts? : .NET Architecture

696






What are the important principles of soa (service oriented architecture)?

666


What is gui programming? : .NET Architecture

679


How can I create a application?

680


Difference between throw exception and rethrowing ?

1829


What is the difference between .net mobile pages and ordinary .net web page? : Microsoft dot net mobile

691


Explain about generation?

725


Explain about clr?

763


What is the use of TPL DATAFLOW?

706


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

714


what are login controls?

1560