[ibraheem: Re: [Tutor] C to Python]

Ibraheem Umaru-Mohammed ibraheem@micromuse.com
Wed, 21 Feb 2001 19:56:08 +0000


--bp/iNruPH9dso1Pn
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline



--bp/iNruPH9dso1Pn
Content-Type: message/rfc822
Content-Disposition: inline

Date: Wed, 21 Feb 2001 19:54:33 +0000
From: Ibraheem Umaru-Mohammed <ibraheem>
To: D-Man <dsh8290@rit.edu>
Subject: Re: [Tutor] C to Python
Message-ID: <20010221195433.A28257@micromuse.com>
References: <013a01c09ba3$0a02bce0$7452b1cf@oemcomputer> <Pine.LNX.4.21.0102202245320.6935-100000@c82114-a.pinol1.sfba.home.com> <20010221143750.A24094@harmony.cs.rit.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <20010221143750.A24094@harmony.cs.rit.edu>; from dsh8290@rit.edu on Wed, Feb 21, 2001 at 02:37:50PM -0500

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++.

Kindest regards,

	--ibs.

--
---------------------------------------------------------------------------
			--  Ibraheem Umaru-Mohammed  --
			--  Email:ium@micromuse.com  --
-- Micromuse PLC, Disraeli House, 90 Putney Bridge Road, London SW18 1DA --
			--  http://www.micromuse.com --
---------------------------------------------------------------------------

--bp/iNruPH9dso1Pn--