What is the difference between Abstract and Interface?

Answer Posted / vanam santhosh

1.All the methods declared in interface are abstact whare
as Abstract must have atleast one abstact and others may
Concrete methods.
2.In abstact class Keyword is abstract must be used for the
methods.In Interface need not use the Keywords.
3.Abstact class must have subclass. where ads in Interfcs
need not have subclass.
4.In Abstarct class can extend only one class.where as in
Interface we can extend more than One Interface

Is This Answer Correct ?    28 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is typeof undefined?

508


What's the difference between a static method and a non static method c#?

503


Where do I put dll files?

572


What is the difference between c and c sharp?

546


Write a program in C# for checking a given number is PRIME or not.

632






What is difference between ilist and list in c#?

484


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

600


Is php better than c#?

497


Is c# a backend language?

569


What is the default value of boolean variable?

456


To allow an element to be accessed using a unique key which .NET collection class is used ?

617


Is boxing an implicit conversion?

543


What is array and types of array in c#?

482


What is the difference between an application domain and a process?

482


What is the difference between “dispose” and “finalize” variables in c#?

486