Class Variable Access and Assignment
Steven D'Aprano
steve at REMOVETHIScyber.com.au
Thu Nov 3 17:22:36 EST 2005
On Thu, 03 Nov 2005 10:01:04 -0800, Paul Rubin wrote:
> Steven D'Aprano <steve at REMOVETHIScyber.com.au> writes:
>> Then you don't approve of inheritance? That's fine, it is your choice, but
>> as far as I know, all OO languages include inheritance.
>
> Some OO languages only implement inheritance for method calls. Class
> variables don't get inherited.
Fascinating. Which languages, and what is the reasoning behind that?
I bet they are languages that force the class designer to spend half their
time writing setters and getters. Am I right?
--
Steven.
More information about the Python-list
mailing list