What is the difference between Abstract and Interface?

Answer Posted / munwar

Interface and abstract class are just same,but both have
their own usability and advantages..

Difference b/w both.
1). Interface is highlevel abstract(means there is no
single implementation), but in abstract class there can be
implementation.
2)Interface does not allow accessfiers like
public,private.. but abstract class allow these accessifiers

3) Interface does not supports contant values but abstract
calss supports constatnt values..

4) Interface supports multiple inheritance but class does
not support multiple inheritance..

5).interface can not implement abstract class but abstract
calss can impelment interface...

Is This Answer Correct ?    12 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is session and cookies in c#?

541


What is an abstract class c#?

504


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

548


What are winforms in c#?

512


Define satellite Assembly?

570






How do I format in c#?

503


What's the difference between class and object?

492


Is comparable a functional interface?

514


What is the default value of string in c#?

568


What are the different types of delegates?

505


What is a web service in c#?

597


Can we set image Source dynamically using C# in WPF application?

647


Explain the various types of classes used in c#?

525


Which property do we set on a Combo Box to display data on it prior to setting the DataSource ?

548


What are reflections in c#?

503