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...

what is abstract class ?
when is used in real time ?
give a exp

Answer Posted / ramakrishna yechuri

An Abstract class ia class which consists at least one
abstract method(in complete method).
Advantage is the user can implement the method body as per
his require ment.

ex: connect(){} ,I implement to conncect to oracle
database,u implement to conncet to sybase,my friend
implement this method to connect to oracle db. same connect
method acting in different forms (polymorphisim).
Note: Always Interfaces is better than Abstract class,becoz
Programming to Interface is better than programming to
classes.
To avoid dependency Injection problems.(spring).

Is This Answer Correct ?    14 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you answer polymorphism?

1111


What is inheritance write a program to show use of inheritance?

1205


What is the problem with multiple inheritance?

1239


What is abstraction oop?

1149


What is encapsulation oop?

1109


i=20;k=0; for(j=1;k-i;k+=j<10?4:3) { cout<

1921


Can private class be inherited?

1227


What is and I oop mean?

1281


What are the types of abstraction?

1154


Why do we use polymorphism in oops?

1109


What does and I oop mean?

1288


What is object in oop?

1173


What is inheritance in oop?

1094


What is destructor example?

1119


What is abstraction in oop?

1192