Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / gopi

abstract class means--it has atmost one abstract
method.remaining might be abstract or not.

interface means ---it has almostall abstract methods.u have
only the method specification.

In real time if u want to share the some common features in
the abstract class u have to extends the abstract class.
so, u need not wrote the body to the all the methods.
if u implement interface u should write body to the all
the methods.

Is This Answer Correct ?    12 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is RMI and what are the services in RMI?

1103


What is a class loader?

1793


Which component handles cluster communication in jboss?

1081


Where can I ask questions and make suggestions about seam?

1030


Write a program to show synchronization?

1101


Can I map more than one table in a cmp?

1048


What is bean? Where can it be used?

1098


What modifiers may be used with an interface declaration?

1096


Can I use multiple html form elements with the same name?

1019


Why use POJO when I can use hashmap

2614


How a component can be placed on Windows?

2812


Why does the option tag render selected=selected instead of just selected?

1140


Define prototype?

1021


what is meant by JRMP?

2292


Should synchronization primitives be used on bean methods?

1025