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
When do I need to use gc.keepalive?
what is diffrent beatween localprinter and networkprinter
What is cookie less session?
any one can explain about projectarchitecture and project approach briefly
What do you know about machine.config file ?
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.
inprocess vs out process session state : Dot net architecture
question related to table havi colspan and row span
How do I know when my thread pool work item has completed?
How can we perform data binding in atlas?
Define the mesi? : Dot net architecture
how to make and display a form without title bar?
How can I write my own .NET host?
What is .net mobile images control. : Microsoft dot net mobile
Explain a .net mobile example with details? : Microsoft dot net mobile