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 multithreading and its advantages?
What is diamond operator in java?
Explain the concept of proper inheritance?
What is downcasting?
What is the difference between serial and throughput garbage collector?
How will you invoke any external process in java?
What are basic data types?
Why is flag used in java?
Differentiate between stringbuffer and string?
What does it mean that a class or member is final?
Is it possible for a yielded thread to get chance for its execution again?
Explain the scope of a variable.
Can we create more than one object singleton class?
What is the difference between quicksort & mergesort? When should they be used? What is their running time?
When is the finally clause of a try-catch-finally statement executed?