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

What is java’s garbage collected heap?

732


What package is math in java?

751


why doesn't java run on all platforms?

784


Explain Basics of OOP Language in java

804


Can we create an object of static class in java?

808


Explain illegalmonitorstateexception and when it will be thrown?

843


Is class is a data type?

808


Is a boolean 1 bit?

841


What is functional interface in java?

775


What do you understand by the term string pool?

768


Is an integer an object?

726


What is the difference between variable & constant?

777


Why does java doesnt suuport unsigned values?

1992


What is the java virtual machine?

857


Explain what pure virtual function is?

800