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 a local, member and a class variable?
Does list maintain insertion order java?
Explain inner classes ?
Is overriding possible in java?
What is the purpose of encapsulation?
What is an array length?
What is the basic difference between string and stringbuffer object?
Explain the difference between extends thread vs implements runnable in java?
What is the difference between an object-oriented programming language and object-based programming language?
What is the tradeoff between using an unordered array versus an ordered array?
What is lazy programming?
Can substring create new object?
Is singleton thread safe in java?
How to compare strings in java?
What is the use of runnable interface?