[Tutor] Private members?
rakeshsharma14 at hotmail.com
Fri Feb 26 22:04:50 EST 2016
I believe in Python there are no private public concept. All are public by default
Sent from Outlook Mobile<https://aka.ms/blhgte>
On Fri, Feb 26, 2016 at 12:04 AM -0800, "kay Cee" <unee0x at gmail.com<mailto:unee0x at gmail.com>> wrote:
Say I have a basic Circle class, for example:
def __init__(self, radius):
self.__radius = radius
Does adding the double underscore make this member directly inaccessible to children of the Circle class?
Also, I'd like to know if there are any side effects to programming classes this way?
Sent from my iPhone
Tutor maillist - Tutor at python.org
To unsubscribe or change subscription options:
More information about the Tutor