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

Answer Posted / meena

in real time project we can use the abstract class so that
the subclasses can be extended so the functionality of the
project becomes easy as per the needs of the things required
in the project
in case of interfaces we can make use of the abstract
methods which means that we can make use of the other class
as interface (which means we can make use of the interface
class by adding the word implements) so that the methods of
the implemented class can be used in our project.
which in turn makes the work more easier.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What you mean by COM and DCOM?

606


Is a class a subclass of itself?

582


Which container method is used to cause a container to be laid out and redisplayed?

657


What is colon_pkg_prefixes and what is its use?

1991


What class is the top of the awt event hierarchy?

567






What is a tasks priority and how is it used in scheduling?

538


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

578


How are the elements of a borderlayout organized?

589


What is meant by method chaining?

654


what are the activation groupworks?

1667


What modifiers may be used with an inner class that is a member of an outer class?

566


which type of objects reference will be given to client?

2019


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

2147


Why a component architecture for the java platform?

566


What is the purpose of the notify() method?

589