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


Please Help Members By Posting Answers For Below Questions

What is a instance variable in java?

541


What is meant by tab pans?

642


What happens if main method is not static?

489


What are the advantages of assembly language?

493


what is encapsulation in java? Explain

657






What are the two parts of a conditional statement?

505


Why isn’t there operator overloading?

583


Which number is denoted by leading zero in java?

796


Tell me a few examples of final classes defined in Java API?

555


What are the 4 types of research methods?

504


Objects or references which of them gets garbage collected?

525


What is boolean keyword in java?

588


What is a boolean flag in java?

559


Can subclass overriding method declare an exception if parent class method doesn't throw an exception?

499


Tell me how many ways are there to initialise an integer with a constant.

635