[Tutor] When to use a Class or just define functions?

Bob Gailer bgailer@alum.rpi.edu
Fri Jun 20 17:42:14 2003


--=======6D597D50=======
Content-Type: text/plain; x-avg-checked=avg-ok-29A86F66; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 8bit

At 09:18 PM 6/20/2003 +0100, Alan Gauld wrote:


> > class Quotes:
> >       pass
> >
> > Very simple, but what 'extra' benefit does making a class
> > and passing it, really do?
>
>None whatsoever since 'pass' doesn't pass the class to anywhere
>it tells the interpreter to pass over the line, thus it does
>literally nothing! Classes are only useful if you put some methods
>inside them.
[snip]
Oh I disagree. A class can do what a C struct does; collect properties that 
have potentially differing values for various instances, and no methods.

Bob Gailer
bgailer@alum.rpi.edu
303 442 2625

--=======6D597D50=======
Content-Type: text/plain; charset=us-ascii; x-avg=cert; x-avg-checked=avg-ok-29A86F66
Content-Disposition: inline


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.488 / Virus Database: 287 - Release Date: 6/5/2003

--=======6D597D50=======--