What?s the difference between an interface and abstract class?
Answers were Sorted based on User's Feedback
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 ? | 6 Yes | 0 No |
Answer / dj
a class can inherit multiple interface where as
a class can inherit only one abstract class
Is This Answer Correct ? | 6 Yes | 0 No |
Answer / adhi
thanxs for your Contribution...I have got one more
diff.. ...Derived Class or Child Class should implement the
methods and properties in interface that are implementing
interface where as it is not manditory in case of Abstract
class
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / pvschmurthy
In Abstract class must have one sub class, but Interface
cann't have sub class only implimentation class.
Is This Answer Correct ? | 0 Yes | 3 No |
How to implement a singleton design pattern in c#?
Why is c# used?
Can we declare private class in c#?
How can you sort strings in array that are passed to method as arguments?
Explain the mechanism of VB.NET/C# achieve polymorphism?
Where is the output of TextWriterTraceListener redirected?
Is java better than c sharp?
What is the default value of datetime in c#?
what is used ref keyword in c#,and how we used it?
What are the properties of string?
Which is the best way for keeping the data in XML or SQL server..and why?
Define using statement in c#?