Back to articles
Classes in python

Classes in python

via Dev.toM.Ark

In the real world, the physical world is made up of material items for example wood, metal,plastic etc. We have to think of these in higher terms to as to understand. For example we think of things as chairs, tables, house etc. Same thing in the programming field,programmers deal with higher level groupings of items-objects. In programming an object is a grouping of data and operations that can be performed on the data. Encapsulation occurs when a user interacts with an objects at a higher level , allowing the lower level details to be hidden. This is also known as information hiding or encapsulation. Objects support abstraction by hiding entire groups of functions and variables and exposing only certain functions to a user. Example Abstraction simplifies our world. An oven is viewed as having a compartment for food and a knob is turned to heat the food. People need not be concerned with an oven's internal workings. Ex: People don't reach inside to adjust the flame. Similarly, an objec

Continue reading on Dev.to

Opens in a new tab

Read Full Article
5 views

Related Articles