Contrast the use of an abstract base class against an interface?

Answers were Sorted based on User's Feedback



Contrast the use of an abstract base class against an interface?..

Answer / kavita sharma

Abstract classes can provide implementations for methods and
properties. Interfaces only provide required declarations.

Is This Answer Correct ?    22 Yes 1 No

Contrast the use of an abstract base class against an interface?..

Answer / anbazhagan vv

A class can inherit only one absatract class, whereas the a
class can inherit more than one interface.

An abstract class can have abstract as well as non abstract
methods whereas the interface can have only the abstract
methods.

Is This Answer Correct ?    13 Yes 4 No

Contrast the use of an abstract base class against an interface?..

Answer / 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

Contrast the use of an abstract base class against an interface?..

Answer / rajeev kumar singh

An abstract class can have abstract as well as non abstract
methods whereas the interface can have only the abstract
methods.
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 4 No

Contrast the use of an abstract base class against an interface?..

Answer / vineet unnikrishnan

interface does not have theimplementation of its members
like functions,properties etc whereas abstract class can
have implementation of its members.

Is This Answer Correct ?    2 Yes 2 No

Post New Answer

More ASP.NET Interview Questions

Can two web application share a session and application variable ?

5 Answers   Satyam, V3 Engineers,


What command line used to generate Runtime callable wrapper.

2 Answers   CTS,


how to get the vb6.0 COM Component in to the .Net application?

3 Answers   iSoft,


What is view state and how it works in asp net?

0 Answers  


What is custom attribute?

0 Answers  


Why asp.net is better than php?

0 Answers  


What are different types of api?

0 Answers  


What is the answer for "Which configuration Tool your using means" ? we have to tell about IIS or .Net Framework or VSS? Give me in brief ?

3 Answers   eXensys,


What events will occur when a page is loaded?

0 Answers  


How do you define authentication in Web.Config?

2 Answers   Patni,


Is it necessary to undertsand these events of an ASPX page execute. Explain its importantance?

2 Answers   HCL, Siebel,


What is the main use of Response.Output.Write()?

4 Answers   Siebel,


Categories