Difference between abstract class and interface

Answer Posted / rajesh

1.)when a class is said to be Abstract if it contain both
implementation & unimplementation details ie,method with
body(implementation),method with out body(un-implementation).
in a class if any method with out body is said to be
abstract method.then before the class name we should keep
abstract to the class.
2.)An interface is a one which is having un-implementation
details(method with out body),multiple inheritence can be
achieved in java by using interfaces.

Is This Answer Correct ?    32 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is Object Caching in Visual Studio 2010?

600


question related to table havi colspan and row span

1794


What are public and private assemblies ?

537


What is the cli? Is it the same as the clr?

516


What is .net mobile input validation. : Microsoft dot net mobile

526






Is .net easier than java?

527


How can we integrate atlas with web services?

523


What is .net mobile utility controls. : Microsoft dot net mobile

497


Explain the race around condition? : .NET Architecture How can it be overcome? : .NET Architecture

502


How can implement drag and drop using atlas?

572


Explain about generation?

572


6. Wcf- what is SOA

1870


What is a service class?

539


Explain the race around condition? How can it be overcome? : Dot net architecture

528


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

514