Difference between abstract class and interface
Answers were Sorted based on User's Feedback
Answer / mkm
)1. Accessibility modifier(Public/Private/internal) is
allowed for abstract class.
Interface doesn't allow accessibility modifier
2. class can inherit only one abstract class
class can implement more than one interface.
(2) An abstract class can contain fields,
constructors, or destructors and implement properties. An
interface can not contain fields, constructors, or
destructors and it has only the property's signature but no
implementation.
(3) An abstract class cannot support multiple
inheritance, but an interface can support multiple
inheritance. Thus a class may inherit several interfaces
but only one abstract class.
• Interface is used to "implements"; whereas abstract class
is used to "extends".
• Interface can be used to achieve multiple inheritance;
abstract class can be used as a single inheritance.
| Is This Answer Correct ? | 13 Yes | 2 No |
Answer / venu
Abstract class and interface
Abstract class we can declare variables here,bt interface we
cannot,interface methods are by default is public,bt
abstract nt.
abstract we can declare object bt we cannot declare instants
of the class.bt interface we cannot do both.
| Is This Answer Correct ? | 1 Yes | 1 No |
how to increase performance of web site? if there is a page with high load. the content is high then what should we do to increase performance?
3 Answers Emphasis, Mphasis, TCS,
Which of the following hosts Can't be used to create .net Application? a) IIS b) Internet Explorer c) ASP.Net d) Windows Shell Which one is correct?
One of the properties of the Web Part has an incorrect format. Windows SharePoint Services cannot deserialize the Web Part. Check the format of the properties and try again. - this error is occured in Sharepoint 2007 while deploy the web part
What is the mvc model?
about view state and how validation controls will be executed on client and server
Which two properties are there on every validation control?
To get the values in two different controls to match which control you use it?
What is custom tag in web.config ?
2 Answers Accenture, BirlaSoft,
Which object wraps the state or data of a user?
What does a switch do?
What are the different types of cookies in asp.net?
How will you do Redo and Undo in a TextControl?
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)