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
What is balance factor?
What are the 3 pillars of oop?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
What is inheritance write a program to show use of inheritance?
What is polymorphism what is it for and how is it used?
Can a destructor be called directly?
What is byval and byref? What are differences between them?
What is overloading and its types?
What is the difference between a mixin and inheritance?
Get me a number puzzle game-program
What are the features of oop?
what are the ways in which a constructors can be called?
What does no cap mean?
What does and I oop and sksksk mean?
Write a program to reverse a string using recursive function?