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

Define a managed code? : Dot net architecture

688


Explain domestic architecture artifacts? : .NET Architecture

713


What is boxing and unboxing? Does it occure automaatically or you need to write code to box and unbox?

733


What is .net mobile input validation. Explain with an example? : Microsoft dot net mobile

711


Can you explain update progress control?

702


Explain about httpruntime.cach.get(); method?

771


Explain .net mobile events? : Microsoft dot net mobile

700


What is the mesi? : Dot net architecture

719


Tell me .net mobile emulators? : Microsoft dot net mobile

722


Whats new features in Visual Studio 2012?

731


What other than biginteger has been introduced in system.numerics namespace?

737


Define domestic architecture artifacts? : Dot net architecture

706


Why the config file might not be writable

798


Explain cache memory? : Dot net architecture

716


readonly syntax ?

1614