While writing methods internal to a class, it would be nice to be able to access private and public methods using the same prefix self, otherwise the programmer has to keep track of which members have been made private so that they can use the private prefix. When classes become large or classes are inherited in different places or indeed packages, it become impractical to constantly keep track of which members/methods are public and which are private.
While writing methods internal to a class, it would be nice to be able to access private and public methods using the same prefix
self
, otherwise the programmer has to keep track of which members have been made private so that they can use theprivate
prefix. When classes become large or classes are inherited in different places or indeed packages, it become impractical to constantly keep track of which members/methods are public and which are private.Thanks