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
Is list a collection c#?
What's the difference between a static method and a non static method c#?
What is multiple interface in c#?
How do you determine whether a string represents a numeric value?
How does it work?
Is a decimal an integer?
What is an object pool in .net?
What are the steps for creating clr trigger
Explain About delegates
how to print invert pyramid in c#
Is linkedhashset synchronized?
Is dictionary a collection?
Can I use parseint?
Can you have more than one namespace in c#?
How do I use the 'using' keyword with multiple objects?