The 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. They encapsulate all the essential properties of the objects that are to be created. Encapsulation is one of the three OOP principles, the other two being inheritance and polymorphism.

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!!!