Contrast the use of an abstract base class against an interface?
Answer Posted / abhishek
Basically both Interfaces and Abstract class sit on top. An
abstract class can have defintion and body. It's also used
when we need to implement polymorphism (Contain at least one
virtual method). However an interface contains only
declaration.
An Abstract inherit a class, an abstract class and implement
an interface. But interface can only implement another
interface.
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
How to use a Master Database in Asp.net?
How to use push notification?
What is event bubbling?
What is asp.net localization?
Which is better asp.net or php?
What are standard controls?
What is the use of service provider?
What is full trust in asp.net?
What are server activated objects?
Explain Apache web servers ? How can you get ASP.NET running in Apache web servers - why should you do this?
What is the difference between session and application?
What is custom events?
What is http only cookie?
How can exception be handled with out the use of try catch?
Which type if caching will be used if we want to cache the portion of a page instead of whole page?