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

Can I create my own context attributes?

568


Explain the difference between l1 and l2 cache? : .NET Architecture

561


What is textbox control of .net mobile? : Microsoft dot net mobile

622


Can I create my own permission set?

536


Explain cache? : Dot net architecture

601






Define an interrupt? : Dot net architecture

555


Explain about continuable exceptions?

543


Explain how to develop mobile applications using microsoft mobile internet toolkit (mmit) or .net mobile? : Microsoft dot net mobile

504


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

538


i wish to write mcts(microsoft certified technology specialist) exam. can anyone give the model question or format and preparation method?

2314


What is the use of CLR in .NET?

603


What is the purpose of cache? : Dot net architecture

538


What is the mesi? : Dot net architecture

550


What are the major differences between services and web services?

501


What is password attribute of the textbox control of .net mobile? : Microsoft dot net mobile

471