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 are concepts of OOPS and how are they implemented in
Java?

Answer Posted / tarangini

oops concepts are Encapsulation, inheritance, abstractio
and polymorphism.

Encapsulation: Buildingup of the data and methods as a
single unit is called encapsulation. It isolates the
members of one class from the members of another class, so
we can declare same variable in both the classes.

best example for encapsulation is: A Class


Inheritance: Producing the new classes from already
existing class is called inheritance. The newly produced
class contains the features of old class and it has its own
features.

the use of inheritance is reusability.

Abstraction: Hiding unnecessary data from the user is
called Abstraction.

Polymorphism: Poly means many. Morphism means forms.
If same object perfrom different tasks is called
polymorphism.

Is This Answer Correct ?    15 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Distinguish between a predicate and a function?

989


What does file separator do in java?

1020


What are the 7 types of characters?

1081


what are the states associated in the thread? : Java thread

1058


What is the difference between Java Program Constructor and Java Program Method, What is the purpose of Java Program constructor Please Explain it Breafily?

1048


Which is better singleton or static class?

988


What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?

1134


What is scope of a variable?

1099


what is object-oriented programming in java?

1058


What are the types of methodology?

1106


What is singleton class example?

1031


What is the dot operator?

1003


Which method returns the length of a string?

1041


What is the difference between hashmap and hashtable in java?

1125


Differentiate between stringbuffer and stringbuilder in java.

1031