Difference between abstract class and interface

Answer Posted / brgkkc

1) Abstract class defines few or none of the methods, but
interface defines all the methods..
2) Abstract classes should have subclasses else that will
be useless..
Interfaces must have implementations by other classes else
that will be useless
3)only an interface can extend another interface, but any
class can extend an abstract class..
4)All variable in interfaces are final by default

Is This Answer Correct ?    444 Yes 531 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are library functions?

544


Explain about appdomains?

599


Explain .net mobile automatic paging? : Microsoft dot net mobile

479


How resource files are used in .net?

542


What is the mesi? : .NET Architecture

596






Explain about developer benefit from memory management?

537


Explain the difference between state server and sqlserver : Dot net architecture

453


What is an interrupt? : Dot net architecture

502


What is the use of web.config?

600


what is sessions and cookies take one example simple way to understand

1845


I want to create a project like google maps how can we do that with atlas?

477


How to implement the display in the class printdoc (how to resolve the naming conflict) a: no naming conflicts

609


Why am I getting an invalidoperationexception when I serialize an arraylist?

480


What are the different pipelining hazards? : Dot net architecture

569


Explain about the base class library provided by microsoft.net?

514