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
How do I declare a pure virtual function in c#?
What is the use of table aliases?
How do you comment in c#?
What is deadly diamond problem?
What do you mean by object pooling?
What is type safe in c#?
What is a private method in c#?
Is there an equivalent to the instanceof operator in visual j++?
Explain the importance and use of each, version, culture and publickeytoken for an assembly.
What are events in C#?
What are instance fields in c#?
Explain circular reference in c#?
What is the use of list in c#?
How do I create multifile assembly?
What is xpath in c#?