What is an Interface and What is an Abstract Class?
Answers were Sorted based on User's Feedback
Answer / meraj khan
Abstract class:
Abstract class act as base class, not instantiable, no
implementaiotn in base class but allow implementaiotn in
derived class with overide method, method must be abstract.
specially used in inheritance.
Interface:
Interface class dont have constructor, destructor,
always public modifier set to true
no implementation
cant used multiple inheritance instead of this we use
multiple interface
| Is This Answer Correct ? | 6 Yes | 1 No |
Answer / lalit
An abstract class is a parent class that allows inheritance
but can never be instantiated
Abstract classes are the classes with no implementation of
methods or concerete implementation of methods
An Interface can inherit several interfaces.
| Is This Answer Correct ? | 2 Yes | 3 No |
Answer / manoj kumar tripathi
We can not create object of abstract class.It is base class
which inherit by other class.we can give at least one
definition in the class.It support inheritance.
| Is This Answer Correct ? | 0 Yes | 3 No |
What is the difference between HTTP-Post and HTTP-Get ?
What are Sticky Sessions?
Tell me what is the request flow used for asp.net mvc framework? : asp.net mvc
Explain what are the advantages of asp.net mvc framework? : asp.net mvc
Define managed code and managed data in .net?
How much is the pay-for-use service if I chose not to use microsoft-sponsored advertising?
What is ashx file in asp.net?
Is it possible for me to change my aspx file extension to some other name?
what is SQL cache Invalidation?
What is custom events? How to create it?
What is asp.net version?
Whats an assembly
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)