Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is encapsulation?

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


Please Help Members By Posting Answers For Below Questions

What is balance factor?

1063


What are the 3 pillars of oop?

1168


Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.

2448


What is inheritance write a program to show use of inheritance?

1128


What is polymorphism what is it for and how is it used?

1006


Can a destructor be called directly?

1060


What is byval and byref? What are differences between them?

2203


What is overloading and its types?

1149


What is the difference between a mixin and inheritance?

977


Get me a number puzzle game-program

2237


What are the features of oop?

1149


what are the ways in which a constructors can be called?

2114


What does no cap mean?

1040


What does and I oop and sksksk mean?

1145


Write a program to reverse a string using recursive function?

2325