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

Can a class have more than 1 destructor?

517


What is lastindexof c#?

484


Why interface is required?

465


Distinguish between system.string and system.text.stringbuilder classes?

447


What is a console device?

484






What is selector c#?

509


How many types of inheritance are there in c#?

478


What are the types of delegates in c#?

473


How more than one version of an assembly can keep in same place?

516


How does one compare strings in c#?

546


What do you mean by streamreader/streamwriter class in c#?

526


What are collections in c#?

475


What is disconnected data architecture in c#?

484


Is c sharp open source?

489


Explain the use of Mutex in C#?

562