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

How do you call a reference in java?

512


How do I stop concurrentmodificationexception?

504


What is integer parseint?

542


What is bytecode in java ?

600


Which sorting algorithm is best in java?

529






What is oop principle in java?

544


Is java a prime method?

543


Why does java have two ways to create child threads? Which way is better?

535


How do you create an array in java?

525


How many bytes is a string?

556


What is factor r?

516


what is function overloading in java?

688


Which of the following is not an isolation level in the JDBC

1604


How to change value in arraylist java?

491


What is an interoperable application in java ?

579