What is the difference between Abstract and Interface?

Answer Posted / shiba shankar

1.In abstact class there may or may not have abstract
method.If there is one abstract method that must be a
abstract class.In interface the methods are bydefault
static and final.
2.Once we make abstract class means that's to be
extended.And the interface to be imlemented by making a
class.Through interface we can overcome the
multipleinheritance.

Is This Answer Correct ?    17 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do extension methods have to be static?

745


What is the difference between IEnumerator and IEnumerable?

901


What is difference between string and string builder?

704


What is the difference between constant and readonly in c#?

624


Explain the security with aop?

827


Why c# is called c sharp?

646


Why ienumerable is used in c#?

629


What is difference between ienumerable and enumerable in c#?

647


What do you understand by 'access specifiers' in C#?

683


What is a Jagged Array in C#?

746


What are the different types of constructors?

700


i want the csharp questions&answeres

1692


What is a method c#?

658


What is difference between a constant and read-only in C#?

719


What is the difference between func and action delegate?

689