[Tutor] C to Python

D-Man dsh8290@rit.edu
Wed, 21 Feb 2001 15:24:33 -0500


On Wed, Feb 21, 2001 at 07:54:33PM +0000, Ibraheem Umaru-Mohammed wrote:
| On Wed, Feb 21, 2001 at 02:37:50PM -0500, D-Man wrote:
| > On Tue, Feb 20, 2001 at 11:07:32PM -0800, Danny Yoo wrote:
| > | 
| > | Classes are less complicated in Python --- in C++ terms, everything is
| > | "virtual" and "public" by default.  The classic Account class in C++:
| > | 
| > 
| > Not quite.  In C++, members are "final" by default.  They are only
| > virtual if you explicitly declare them as virtual.  In Java, on the
| > other hand, everything is "virtual" without specifying it, and "final"
| > only if declared final.
| > 
| 
| I think you *might* have misunderstood what Danny wrote.
| 
| I think he meant Classes in *Python* would be the equivalent of "virtual" and
| "public" classes in C++.
| 

Ok, yeah, I read it too fast and missed the word "terms" there.  I
thought he wrote "in C++, ...".

Sorry about that.

-D