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
Is an integer an object?
Explain covariant method overriding in java.
Can we override static methods in java?
How would you dynamically allocate memory to an array?
What is meant by memory leak?
What is static keyword?
What is the maximum size of arraylist in java?
What are the restriction imposed on a static method or a static block of code?
Can we print null in java?
Is set thread safe java?
What do you understand by java?
What is Enum in Java?
how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? : Java thread
Is string is a data type in java?
How do you sort in descending order in java using collections sort?