Skip to content

Class Variables Access

Vinicius Reif Biavatti edited this page Jul 25, 2022 · 1 revision

✅ Do

class Person:
    person_name: str = 'John Due'  # Public
    _person_name: str = 'John Due'  # Protected
    __person_name: str = 'John Due'  # Private
Clone this wiki locally