Answer Posted / 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 View All Answers
Why do we use class?
Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)
I have One image (means a group photo ) how to split the faces only from the image?............ please send the answer nagadurgaraju@gmail.com thanks in advace...
What are different oops concepts?
Which is better struts or spring?
• What are the desirable attributes for memory managment?
What are the data types in oop?
Why do we use class in oops?
#include
What are two types of polymorphism?
What is abstract class in oop?
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
What is new keyword in oops?
What is overloading in oops?