Python OOP - PRIVATE MEMBERS, Encapsulation and Abstraction

Опубликовано: 23 Февраль 2026
на канале: Tech Programmer
206
3

This video starts with discussion of abstraction, encapsulation and ultimately progresses towards private members.

Abstraction and Encapsulation are two important pillars of object oriented programming paradigm. Abstraction refers to providing only relevant information to the outside world in the form of common interfaces whereas encapsulation refers to binding data and methods to modify those data in a single entity, class. We have already seen classes to bind data attributes and methods.

Further down the road, this video dives into the important concept of private members in Python. Python doesn't truly support private members like other object oriented programming languages, but we can prohibit direct access if we prefix data attributes with double underscores. They are not truly private. We can still access them as you can see in this video towards the end.

#Python #ObjectOrientedProgramming

If you like our content, click on SUBSCRIBE button and click on Bell icon to receive latest and greatest updates of my video lessons.

Follow us on Facebook, Twitter, Instagram

Facebook Link:   / techprogrammer1  
Twitter Link:   / techprogrammer1  
Tumblr Blog: https://www.tumblr.com/blog/techprogr...