explain oops concepts with examples?

Answer Posted / j

Encapsulation is the procedure of covering up of data and
functions into a single unit. Encapsulation (also
information hiding) consists of separating the external
aspects of an object which are accessible to other objects,
from the internal implementation details of the object,
which are hidden from other objects.

A process, encapsulation means the act of enclosing one or
more items within a (physical or logical) container (Class)

Is This Answer Correct ?    79 Yes 38 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the different types of functions?

550


Explain about the interpreter in java?

617


In java, how many ways you can take input from the console?

510


What is difference between fileinputstream and filereader in java?

551


Why java is used everywhere?

584






What languages are pass by reference?

532


which one is more efficient int x; 1. if(x==null) 2.if(null==x) state which one either 1 or 2?

9175


Why isn’t there operator overloading?

583


What does it mean that strings are immutable?

562


Why is inheritance used in java?

595


How do you create a null object?

503


os is developed in c no java is more secured then c na why dont the os developed is developed using java

3514


Are variables stored in ram?

546


What is the difference between exception and error in java?

486


Is call by reference possible in java?

527