The wrapping up of data and methods into a single unit is known as encapsulation. Data encapsulation is the most striking feature of the class. The data is not accessible to the outside world and only those methods, which are wrapped in the class, can access it. These methods provide the interface between the object’s data and the program. This insulation of the data from direct access by the program is called data hiding. Encapsulation makes it possible for objects to be treated like ‘black boxes’, each performing a specific task without any concern for internal implementation. Abstraction refers to the act of representing essential features without including the background details or explanations. Classes use the concept of abstraction and are defined as a list of abstract attributes such as size, weight and cost, and methods that operate on these attributes.

0 comments:

Blog Archive

Disclosure Policy

THE POSTS BEING PRESENTED IN THIS BLOG ARE WRITTEN WITH FULL COMMITMENT AND EXTREME PASSION. I AM READY TO OBTAIN COMPENSATION IN THE FORM OF CASH FOR WRITING SOME OF THE SPONSORED POSTS. I HAVE BEEN UPDATING MY BLOG REGULARLY WITH INTERESTING ATTRACTIVE NEWS AND TECHNOLOGIES WITH AN IDEA OF ATTRACTING LARGE NUMBER OF READERS!!!