Click here to Skip to main content
15,889,851 members
Articles / Programming Languages / Python

Python vs C++ Series: Getter, Setter, and Property

Rate me:
Please Sign up or sign in to vote.
4.78/5 (8 votes)
26 Sep 2021CPOL6 min read 8.5K   12  
Introduce Python Property from the concept of C++ Getters and Setters
In this post, I will briefly review encapsulation, followed by a discussion of access functions in C++ and access control and property in Python.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United States United States
My name is Shun. I am a software engineer and a Christian. I currently work at a startup company.
My Website: https://formosa1544.com
Email: shun@formosa1544.com

Comments and Discussions