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 the difference between future and callable interface in java?
What are synchronized blocks in java?
What are the restrictions that are applied to the java static methods?
Are private methods final?
What are runtime exceptions?
What are the main uses of the super keyword?
What is java autoboxing?
State one difference between a template class and class template.
What are heterogeneous objects?
How to reverse a string in java?
Explain creating threads by extending thread class ?
How destructors are defined in java?
Why are getters and setters used?
Can a variable be local and static at the same time?
What Is Composition?