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 is a nested class?
How to implement a multithreaded applet?
What do you mean by inner class in java? Explain
Can we extend singleton class in java?
What is stringreader?
What do you understand by overloading and overriding in java?
What is exception in java?
What is an abstract class and what is it’s purpose?
What is difference between final and finally in java?
Define how objects are stored in java?
why java uses class level type casting ?
How many bits is a string?
What is flush () in java?
If you do not want your class to be inherited by any other class. What would you do?
What are the differences between forwarding () method and sendredirect() methods?