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

Explain about the dynamic behavior of core java?

719


What does += mean in java?

671


Have you ever used hashtable and dictionary?

669


What is java in detail?

685


What is class variable java?

665






What is the meaning of find and replace?

616


Class c implements interface I containing method m1 and m2 declarations. Class c has provided implementation for method m2. Can I create an object of class c?

1127


Explain about member inner classes?

703


What is static variable with example?

657


How can you read an integer value from the keyword when the application is runtime in java? example?

710


Why object class is super class for every class in java?

671


What is a method signature java?

687


How do you use wildcards?

618


Why is the main method static?

730


What is the purpose of finalization in java programming?

658