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 new in the .net 2.0 class library?
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
What is difference between Desktop, Client Server & Web based applications?
Explain about code access security?
what is the difference between running an application with and without debugger?
Explain the types of memory management? : Dot net architecture
Explain dma? : Dot net architecture
How do I write to the application configuration file at runtime?
How do you handle this COM components developed in other programming languages in .NET?
Can you Explain
What is .net mobile input validation. : Microsoft dot net mobile
How can I write my own .NET host?
What is the difference between l1 and l2 cache? : Dot net architecture
Define pipelining? : Dot net architecture
What is Opf3