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
What is __ requestverificationtoken?
Will session work if cookies is disabled?
What is asp net theme?
Describe how passport authentication works.
Difference between Response.redirect vs server.transfer?
What are resource file and how do we generate resource file?
Is asp.net free?
How many types of file extensions for razor views in ASP.Net MVC?
Explain difference between dataset and recordset?
Give a few examples of page life cycle events.
Which platform does Microsoft .NET use for exchanging data between applications?
About CLR, reflection and assemblies?
Explain the difference between page.registerclientscriptblock and page.registerstartupscript?
What is considered a service provider?
What are the different properties of server control that exists?