In real time project when will we use Abstract class. and
what are the difference between abstract and interface.

Answer Posted / avinash

In Real time,we use Abstract class when we want the
implemented functionality to be used . In Abstract class ,
there may contain Abstract methods or non abstract
methods(concrete methods).

When we dont want the functionality provided by the abstract
class then we are going to make use of Interface. we
directly implement the interface and provide functionalities
for the abstract methods.

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

wahts is mean by dynavalidatorform in struts/

1542


What is the relationship between local interfaces and container-managed relationships?

571


What is a class loader?

569


Can I use javascript to submit a form?

577


What are the benefits of detached objects?

563






What value does read() return when it has reached the end of a file?

524


the same information whether it will connect to the database or it will be used previous information?

547


Will the general public have access to the infobus apis?

511


Is jvm a overhead?

602


Difference between loadclass and class.forname?

570


In inglish: How to convert jar to exe files? Em português: Como converter arquivos .jar para .exe?

2123


whats is statement and procedure

1562


What is the difference between the session.get() method and the session.load() method?

570


What is the purpose of the wait() method?

595


Can I run seam with jdk 1.4 and earlier?

537