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


Please Help Members By Posting Answers For Below Questions

if you do have a stack overflow profile.what is your ranking?

1483


Define c# i/o classes?

529


What is binary search tree in data structure?

479


What is difference between internal and protected internal in c#?

464


What are extensions in c#?

537






What is a destructor in c#?

525


Is c# easier than c++?

535


What is cli in c#?

498


What is the class in c#?

487


How do you serialize an object?

526


In object oriented programming, how would you describe encapsulation in c#?

539


What is dataset and dataadapter in c#?

497


What is hashtable c#?

473


Is multiple inheritance possible in c#?

559


write a C# Program add two matrix ?

575