What is the difference between Abstract Classes and
Interfaces? Give the answer as a table format....
Answers were Sorted based on User's Feedback
Answer / mansoor ul hassan
In abstract classes, its upto u to make methods abstract
but in interfaces, all methods are bydefault abstract.
| Is This Answer Correct ? | 12 Yes | 1 No |
Answer / sandeep pokala
Interface is a set of abstract methods,all the methods have
to be overridden by the class which ever implements the
interface.
Abstract class is collection of data and methods,which are
abstract. In abstact class some methods may contain
defination,but in interface every method should be abstract
( no definations in the methods)
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / hemalatha ivvala
Abstrat Class: It is a combination of Concrete Methods and
Abstract Methods.
Interface: Which class is only having abstract methods is
called interface.
Concrete Methods: Methods having declaration and definition
Abstrat Method: Methods having only declaration not having
any definition. Becuase abstract methods are used to provide
data abstractions(Means providing method definition and
hiding method declaration to provide security to the client).
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / swati
abstract class
1. abstract class have concrete methods ; interface have no
methods implemented.
2.interface do not come in inheriting chain; abstract class
come in inheriting chain.
3.in an interface no accessibility modifiers are allowed;
abstract class may have accessibility modifier
| Is This Answer Correct ? | 2 Yes | 2 No |
Answer / rt
In abstract class, there can be concrete methods. Whereas it's not the case with interfaces.
| Is This Answer Correct ? | 3 Yes | 5 No |
Which is the base class for all the classes in .net framework?
Explain the difference between thread and process?
Name the class which allows an element to be accessed using unique key?
What is the difference b/w Readonly Variable and Constant Variable?
What is late binding?
sir how i can calculate the value of two-textbox of gridview and show result in textbox within gridview in asp.net with vb.net..plz sir reply me
How do you validate Date by using which validation Control?
What is an arraylist?
what is delegates
What is CLR?
20 Answers Horizon Computers, Microsoft,
Is VB.NET object oriented? What are the inheritances does VB.NET support ?
13 Answers Digital GlobalSoft, Global Infotech, Infosys,
Can you please explain the difference between namespace and 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)