Difference between abstract class and interface
Answer Posted / ashish gupta
1)Abstract class can have either declaration or definition
of any method,however an interface must declare a method
and it can not define it.
2)An interface makes some sort of contract to its
implementing classes to define all the declared methods
within those classes.
3)A class/subclass should Extend the abstract class while a
class/subclass should Implement the interface.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain different pipelining hazards and how are they eliminated? : .NET Architecture
Explain about continuable exceptions?
how to create applications by using Visual Studio 2012?
Why am I getting an invalidoperationexception when I serialize an arraylist?
Is .net easier than java?
Explain how does .net mobile work? : Microsoft dot net mobile
What are the major differences between services and web services?
Explain some of the disadvantages due to microsoft.net?
What does the term "green architecture" mean? : Dot net architecture
What is .net mobile images control. Explain with an example? : Microsoft dot net mobile
Define cache coherency? : Dot net architecture
What are the five stages in a dlx pipeline? : Dot net architecture
How to implement the display in the class printdoc (how to resolve the naming conflict) a: no naming conflicts
Explain difference between machine config vs. Web config? : .NET Architecture
Explain different pipelining hazards and how are they eliminated? : Dot net architecture