As outlined by this basic principle, the attributes of a class are created private to hide and protect them from other code. Down below is another example on how @property can help when 1 has to refactor code which happens to be taken from in this article (I only summarize https://luxuryprojectsgurugram.in/