What?s the difference between an interface and abstract
class?
Answers were Sorted based on User's Feedback
Answer / sunitha
Interface - All Methods in the Interface are abstract
Methods.So the Access Modifier is public by default which
helps the Class ABC Implementing the Interface to define
the code for the methods
Abstract - > Protected Methods can be defined & implemented
in Abstract Class. This class does some implementation of
its own & leaves the remaining implementation to the
Derived Class
1.Multiple Inheritance is possible through Interface only.
2.If we add any new method in the interface, then all the
derived class has to be altered to include the
implementation of the method.
3.Interface is on the Top Level
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / guest
In the interface all methods must be abstract; in the
abstract class some methods can be concrete. In the
interface no accessibility modifiers are allowed, which is
ok in abstract classes.
| Is This Answer Correct ? | 3 Yes | 3 No |
Explain what is the smallest unit of execution in .net?
Define sealed classes in c#?
Can a struct inherit from another struct or class in c#?
What are the ways to deploy an assembly?
what is the lifespan of the items stored in viewstate ?
what is Anonymous Method.? and What is shadowing?
What happens if you add duplicate elements to a set?
Structs are largely redundant in c++. Why does c# have them?
Describe ways of cleaning up objects in c#.
Why can?t you specify the accessibility modifier for methods inside the interface?
Explain about throw keyword?
10 Answers Emphasis, HCL, Satyam,
What is the difference between ienumerable and icollection?
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)