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 the oops concept in java explain with real time
examples

Answer Posted / niventh mca

1,class
2,encapsulation
3,polymorphism
4,inheritance
5,Abstraction

class
collection of attributes is called class
Real time example......human body

encapsulation
To encapsulate the some methods,operations in one
class is called the encapsulation
Real time example...... capsules

polymorphism
To ability to take more than one form
Real time example...... xerox machine
inheritance
one class properties occur from another class properties
Real time example......land line...will phone....cellphone
2g....3g....

Is This Answer Correct ?    76 Yes 34 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we declare a static variable inside a method?

1009


What is the use of a conditional inclusion statement in Java ?

1097


What is private protected in java?

1059


When should you make a function static?

992


What do you mean by multithreaded program?

1015


What exceptions occur during serialization?

1096


Can a abstract class be declared final?

1009


What are the two ways of implementing multi-threading in java?

1515


a thread is runnable, how does that work? : Java thread

1021


What is an anonymous class in java?

1108


Can a class be declared as protected?

1020


What happens when a thread cannot acquire a lock on an object in java programming?

1024


What are alternatives to java serialization?

1132


Explain about main thread in java?

1090


What is the role of the java.rmi.naming class?

1074