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

What is tracing? Where is it used?

0 Answers  


Mention the namespace that is used to include .net data provider for sql server in .net code?

0 Answers  


Differentiate globalization and localization.

0 Answers  


What does occur first in ASP.Net, Authentication or Authorization?

0 Answers   MCN Solutions,


what are the attributes of sitemapnode?

3 Answers   Satyam,






hi everyone. can anyone send me wipro interview questions on .net. plz its urgent

1 Answers   Wipro,


What line in the following XML document will generate an error? <?xml version=?1.0?> <employees> <employee> <name>Bob Andcarrol</name> </employee> <employee> <name>Robert Burns</name> </employee> </employees> a) 6 b) 4 c) 1 d) There is no error

3 Answers   Syntax Softtech,


What are the memory-mapped files?

0 Answers  


What is the use of The Page.Master Property?

1 Answers  


What is WCF

4 Answers  


What threading model used in asp and asp.net?

0 Answers  


Define a static class?

0 Answers  


Categories