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
What is the difference between primary & secondary storage device? : Dot net architecture
What does this do? Gacutil /l | find /i "corillian"
What is parallel computing?
what is the difference between master page and content page?
Explain domestic architecture artifacts? : .NET Architecture
What are the important principles of soa (service oriented architecture)?
What is gui programming? : .NET Architecture
How can I create a application?
Difference between throw exception and rethrowing ?
What is the difference between .net mobile pages and ordinary .net web page? : Microsoft dot net mobile
Explain about generation?
Explain about clr?
What is the use of TPL DATAFLOW?
Tell me .net mobile emulators? : Microsoft dot net mobile
what are login controls?