explain oops concepts with examples?
Answer Posted / reddy
Abstraction: giving only important things hiding unnecessary
things.
data hiding: we can get by using private keyword
encapsulation: abstraction+data hiding(security)
polymorphism: flexibility
inheritance: reusability
Is This Answer Correct ? | 116 Yes | 44 No |
Post New Answer View All Answers
What is void class in java?
Can a static block throw exception?
Where to store local variables?
What is linked hashmap and its features?
what are the states associated in the thread? : Java thread
How many bytes is 255 characters?
Why java is object oriented?
Write a program to calculate factorial in java?
What is local class in java?
What do you mean by local class?
Is there any case when finally will not be executed?
What is jvm? How its run?
What is ascii code?
Why do we need wrapper classes?
Define nashorn in java8.