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 the use of table aliases?

489


What is data set in c#?

500


Explain attributes in c#?

481


Give examples for value types?

489


What is regex c#?

489






Why do we use parameters in c#?

500


Can extension methods access private members?

514


What is the usage of Enumeration in C# Programming and is it good to use or not ?

559


Can we make a class private in c#?

500


Why do we need to override in c#?

523


Do events have return type c#?

508


What are the advantages of generics in c#?

500


Explain the difference between “system.array.clone()” and “system.array.copyto()” in c#?

509


Where static variables are stored?

476


What is the .NET collection class that allows an element to be accessed using a unique key?

599