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 |
What is an application domain?
after which page life cycle event all properties of control will be "fully loaded "
can we transfer data from one page to another page using viewstate if so how?if not y?
37 Answers AppShark, DataSync, Gtech, iGate, Wipro,
how many character send in one sms forget 160limit and think about gateway allowed
How would one do a deep copy in .NET?
what is shared assembly?
what is view state
5 Answers Microsoft, Siebel Systems,
What is the difference between web.config and machine.config in ASP.NET?
Explain what benefit does your code receive if you decorate it with attributes demanding specific security permissions?
Is it right that ASP.NET Web API has replaced WCF?
In which module you have worked in your .net project explain?
repeater and gridview diff? Why is repeater fast than gridview?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)