Short Note on Encapsulation in C++

No comments


Encapsulation :- 

                       The wrapping up of data and function into a single unit (Called Class) Is known as encapsulation. This data is not accessible to the out side world, and only those functions, which are wrapped in the class, can access it. These function provide the interface between the object data and the program . The insulation of the data from direct access by the program is called Data Hiding or Information Hiding.

Abstraction referrers to the act of representing essential features without including the background details or explanation. Classes use the concept of abstraction and are defined as a list of abstract attribute such as size,weight and cost and functions to operate on these attributes.

                                                 They encapsulation all the essential properties of the objects that are to  be created. The attributes are some times called Data Members because they hold information. The functions that operate on these data are some times called Methods or Member function .

No comments :

Post a Comment

Subscribe

Milan Panda
Admin
About Me | Contact
Copyright 2023-2024 © Programming1011 . 🎀 Developed and Design By- Milan Panda. Happy Holi All Of You 🎀