Contrast the use of an abstract base class against an interface?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
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 |
Which is the namespace used to write error message in event Log File?
what is an Eventbubbling?
What is application variable?
Difference between application events and session events
Can you explain what inheritance is and give an example of when you might use it?
What is microsoft windows sharepoint services?
How do you construct HtmlResponseMessage?
Where are session variables stored?
What is the difference between a thread and a process?
What are the validation controls available in ASP.NET?
What is content page in asp net?
What is difference between view and partial view?