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
if you do have a stack overflow profile.what is your ranking?
Define c# i/o classes?
What is binary search tree in data structure?
What is difference between internal and protected internal in c#?
What are extensions in c#?
What is a destructor in c#?
Is c# easier than c++?
What is cli in c#?
What is the class in c#?
How do you serialize an object?
In object oriented programming, how would you describe encapsulation in c#?
What is dataset and dataadapter in c#?
What is hashtable c#?
Is multiple inheritance possible in c#?
write a C# Program add two matrix ?