Protected Methods and Python

Jan Dries Dries.Jan at skynet.be
Sun Apr 13 15:07:50 EDT 2003


Don't worry too much about protected methods. Bjarne Stroustrup, creator 
of the C++ language, considers them to be a design mistake, and now 
regrets they were ever added to C++. See "The Design and evolution of 
C++" by Bjarne Stroustrup, page 302.
Java and I assume Ruby as well simply copied the concept from C++.

Regards,
Jan

srijit at yahoo.com wrote:
> I do not see a  concept of Protected Methods in Python 2.2 like C++ and Ruby.
> Is this a serious limitation for Object Oriented Programing with Python? 
> Or may be it is possible to emulated Protected Methods in Python.
> 
> I look forward to some discussion by OOP experts.
> 
> Regards,
> Srijit







More information about the Python-list mailing list