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
How many days will it take to learn java?
What are the core java topics?
What are the advantages of autoboxing?
When should you make a function static?
How do you compare values in java?
What is the impact of declaring a method as final?
Which collection is best for sorting in java?
What is a cup of java?
What is the use of flag?
Which sort is best in java?
what is meant by encapsulation?
What is a return in java?
Can we modify the throws clause of the superclass method while overriding it in the subclass?
These static constructors are correct ? class A { statc intA() { } static A(int x,int y) { } static A(int x) { } }
How do you write a conditional statement?