What is the difference between interface and abstract class ?
Answer Posted / chetan dubey
In c#.net there are basic differences:-
(1)In interface ,we cannot define an datafield while
datafield is declare in abstract class.
(2)Interface can be declared by using the keyword
interface,and abstract can declared by using the abstract
keyword.
(3)we can declare only function prototype which can be
define in inherited class but In abstract class,there is
minimum one abstract method and we define other method also.
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Explain partial class in c#?
How does inheritance work in c#?
What is private class in c#?
Is it possible to have different access modifiers on the get/set methods of a property?
Which are the access modifiers available in c#?
How do I calculate relative time?
What is the difference between // comments, /* */ comments and /// comments?
what is partial assembly reference
In which order the constructor is called for an inherited class?
Why are strings immutable c#?
What is stringwriter c#?
What does readonly mean in c#?
Which class does the remote object has to inherit?
What is boxing & unboxing?
What is Dependency of Injection?