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


Please Help Members By Posting Answers For Below Questions

Is asp.net and .net same?

542


What are the steps involved to fill a dataset?

556


Do session use cookies in asp net?

496


Explain what is an assembly?

557


What is meant by ispostback in asp net?

544






What is the life cycle of web page?

524


When you use Ajax controls in the ASP.NET application?

566


What are validator? How do you disable them?

599


What’s the catch?

623


What is authentication in asp.net?

571


How to do state management in ASP.NET?

597


Explain the difference between array and linkedlist?

524


What is http pipeline in asp.net?

510


Can I recieve both html markup for page and code in the asp.net web page's source code portion in the web browser?

536


What is the use of ASP.NET routing?

558