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
What is java’s garbage collected heap?
What package is math in java?
why doesn't java run on all platforms?
Explain Basics of OOP Language in java
Can we create an object of static class in java?
Explain illegalmonitorstateexception and when it will be thrown?
Is class is a data type?
Is a boolean 1 bit?
What is functional interface in java?
What do you understand by the term string pool?
Is an integer an object?
What is the difference between variable & constant?
Why does java doesnt suuport unsigned values?
What is the java virtual machine?
Explain what pure virtual function is?