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
What is the purpose of namespace in c#?
Why we use get set property in c#?
How do I simulate optional parameters to com calls?
What is the difference between abstraction and encapsulation in c#?
What are the drawbacks of extending an interface as opposed to extending a class?
What is addressof operator?
What is a destructor in c#?
What is func delegate in c#?
What is using directive in c#?
What are some of the commonly used commands in sqlcommand?
What is a hashset c#?
What do u mean by delegation?
Define multicast delegate in c#?
What is windows forms in c#?
What is the difference between select and selectmany?