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
Differences between VS 2005, 2008 and 2010 ?
Do you know textbox and textview controls of .net mobile? : Microsoft dot net mobile
What is the purpose of Accordian in jquery? Where it can be used?
What is one way operation?
Can you Explain
Define pipelining? : Dot net architecture
what is sessions and cookies take one example simple way to understand
How do I prevent concurrent access to my data?
What are the major differences between services and web services?
Explain cache memory? : Dot net architecture
Explain the purpose of cache? How is it used? : .NET Architecture
where should I put this information then?
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.
Explain about continuable exceptions?
8. Oop-Why and were we use Interfacse and Abstract class.