When should we use abtract class and Interface Class?Give
an Example
Answers were Sorted based on User's Feedback
Answer / eswar
Features are same but implementation are different then we
go for Interface
Features are same and some of the implementations are same
then we go for Abstract.
| Is This Answer Correct ? | 14 Yes | 10 No |
Answer / pallavi
Use an abstract class when you want to inherit only from the parent
Use an interface when you want to inherit from multiple sources
If the behaviour of base class is default behaviour of all the sub classes the use abstract. If it is not default behaviour for all the classes use interface.
Interface - CAN-DO relationship
abstract class - IS-A relationship
| Is This Answer Correct ? | 4 Yes | 2 No |
Answer / pravin more
If U Want to add some modules in ur application in the
feature then u can use abstract class.
---Pravin More
| Is This Answer Correct ? | 3 Yes | 2 No |
Answer / lenin n c
In abstract we need can create Object for that class and
cannot inherit it.
But in case of interface viceversa
| Is This Answer Correct ? | 2 Yes | 17 No |
Explain the code Access Security (CAS) in .net Framework?
Suppose there is one web farm with 3 servers inside with same configuration and the same project is running inside all servers.Which session mode is usde for all these and why?
what are the components available in global.asax ?
What is the use of sessionstate tag in the web.config file?
How we can force all the validation controls to run?
Project Architecture (3tier, n-tier)
Explain the difference between Web Garden and Web Farm?
0 Answers Sans Pareil IT Services,
What is actually returned from server to the browser when a browser requests an .aspx file and the file is displayed?
What is a page life cycle?
Difference between Htttppost and Httpget Methods?
what is use to destroy an object? illustrate.
what are configuration files?
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)