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

Does JITting occur per-assembly or per-method? How does this affect the working set?

1 Answers  


How do we ensure view state has not tampered?

0 Answers  


What is protected configuration?

0 Answers  


view state data is stored in which format?

15 Answers   Mind Tree, Pratham Software,


Explain what the contents of cookie?

0 Answers  






Explain how server control validation controls works?

2 Answers   CMS, Syntax Softtech,


What is the main function of razor in asp.net? : asp.net mvc

1 Answers  


Name the application folders present in asp.net 2.0?

1 Answers  


Why do we use Option Explicit?

2 Answers   Microsoft,


What is a SESSION and APPLICATION object?

0 Answers  


Can we create a multiple user simultaneously ?

0 Answers   MCN Solutions,


What will happen if the server confugration file and the application confugration file have different values for sassion state ASP.NET?

0 Answers   HCL,


Categories