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
What are the new features of .net 2.0?
Explain about cookie less session state? : .NET Architecture
What is an asssembly qualified name? Is it a filename? How is it different?
What is boxing and unboxing? Does it occure automaatically or you need to write code to box and unbox?
What is a service class?
Explain about httpruntime.cach.get(); method?
What is MS chart control in visual studio?
What is IL code, CLR, CTS, GAC & GC?
Explain the types of memory management? : .NET Architecture
What is application frame host?
HttpHendler and HttpModules
how to create applications by using Visual Studio 2012?
What is textview control of .net mobile? : Microsoft dot net mobile
how to change row background color in gridview
What is .net mobile lists. Explain with an example? : Microsoft dot net mobile