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

Explain different pipelining hazards and how are they eliminated? : .NET Architecture

707


what is polymorphism and advantage ?

1722


inprocess vs out process session state : Dot net architecture

708


Explain what does the term "green architecture" mean? : .NET Architecture

717


what is the method while we are using adapter and dataset ?

1554


What are the options provived by vss to the user? how it will help us while delevoping application?

1963


When do I need to use gc.keepalive?

836


How can we integrate atlas with web services?

693


What is cache coherency and how is it eliminated? : Dot net architecture

693


Explain element .net mobile with example? : Microsoft dot net mobile

726


hi, kindly send WWF(.net 3.5) pdf notes to my id. thanx in advance, chays

2075


What is the use of TPL DATAFLOW?

719


What are public and private assemblies ?

716


HttpHendler and HttpModules

1894


What is the difference between absolute expiration and sliding-time expiration?

738