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 instance variable in java?
What is meant by tab pans?
What happens if main method is not static?
What are the advantages of assembly language?
what is encapsulation in java? Explain
What are the two parts of a conditional statement?
Why isn’t there operator overloading?
Which number is denoted by leading zero in java?
Tell me a few examples of final classes defined in Java API?
What are the 4 types of research methods?
Objects or references which of them gets garbage collected?
What is boolean keyword in java?
What is a boolean flag in java?
Can subclass overriding method declare an exception if parent class method doesn't throw an exception?
Tell me how many ways are there to initialise an integer with a constant.