[Tutor] C to Python

D-Man dsh8290@rit.edu
Wed, 21 Feb 2001 14:37:50 -0500

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.

(BTW, the term "virtual" only really applies to C++, and "final" to
Java even though the concepts are universal)