What is encapsulation?

Answers were Sorted based on User's Feedback



What is encapsulation?..

Answer / k.rakesh

Encapsulation means binding the data and coding the part is called as "Encapsulation"

Is This Answer Correct ?    1 Yes 0 No

What is encapsulation?..

Answer / laxmikanth k

Binding the data and code is called"encapsulation"

Is This Answer Correct ?    0 Yes 0 No

What is encapsulation?..

Answer / senthil

wrapping of data into single unit.........

Is This Answer Correct ?    0 Yes 0 No

What is encapsulation?..

Answer / rahul

Encapsulation can be described as a protective barrier
that prevents the code and data being randomly accessed by
other code defined outside the class.
Encapsulation is the technique of making the fields in a
class private and providing access to the fields via public
methods. If a field is declared private, it cannot be
accessed by anyone outside the class, thereby hiding the
fields within the class. For this reason, encapsulation is
also referred to as data hiding.

Is This Answer Correct ?    0 Yes 0 No

What is encapsulation?..

Answer / chinni

The wrapping up of data and functions into a single unit
called encapsulation.

Is This Answer Correct ?    0 Yes 0 No

What is encapsulation?..

Answer / rajdeep gupta

Two concepts that go together in the object oriented approach are Encapsulation & Abstraction. Abstraction is the representation of only the essential features of an object, while Encapsulation is the hiding of the non-essential features.

Think of a person driving a car. He does not need to know the internal working of the engine or the way gear changes work, to be able to drive the car (Encapsulation). Instead, he needs to know things such as how much turning the steering wheel needs, etc (Abstraction).

Is This Answer Correct ?    0 Yes 0 No

What is encapsulation?..

Answer / kirti

Encapsulation is the ability to hide the internal workings of an object's behavior and its data. For instance, let's say you have a object named Bike and this object has a method named start(). When you create an instance of a Bike object and call its start() method you are not worried about what happens to accomplish this, you just want to make sure the state of the bike is changed to 'running' afterwards. This kind of behavior hiding is encapsulation and it makes programming much easier.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More OOPS Interview Questions

What do you mean by multiple inheritance and multilevel inheritance? Differentiate between them.

2 Answers  


Is this job good for future? can do this job post grduate student?

0 Answers  


all about pointers

2 Answers  


write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).

0 Answers  


What is the significance of classes in oop?

0 Answers  






Difference between over loading and over ridding?

12 Answers   CTS, Patni, Softvision Solution,


what uses of c++ language?

3 Answers  


What is encapsulation oop?

0 Answers  


How to reverse a sentence in c program ex: ram is a good boy answer: boy good a is ram

0 Answers   IBM,


Why is static class not inherited?

0 Answers  


What's the full form of STL?

2 Answers  


Why is there no multiple inheritance?

0 Answers  


Categories