explain oops concepts with examples?
Answer Posted / srinu
dataabstraction:it is giving only important things hiding
unnecessary things
encapsulation : it is data hiding under wrapper class
inheritance :it is reusebility code
example : parent propert belongs to child
polymorpism: it is flexibility when output depends upon
no of input
in this we have overloading
overloading means it contains same data type and
different parameters
| Is This Answer Correct ? | 77 Yes | 35 No |
Post New Answer View All Answers
What are classloaders?
What are advantages of exception handling in java?
What are the two ways of implementing multi-threading in java?
How do you find the maximum number from an array without comparing and sorting?
Tell me about your ability to work under pressure
Is java a compiler?
What is a concrete classes? Is Java object class is concrete class?
What is bubble sorting in java?
Which is easier .net or java?
What happens when main () method is declared as private?
Which sorting algorithm is best in java?
Write a program to reverse a number in java?
How many bits is a boolean?
Why is a constant variable important?
How much is a java license?