OOP: How to implement listing al 'Employees'.

Bjoern Schliessmann usenet-mail-0306.20.chr0n0ss at spamgourmet.com
Fri Dec 28 07:40:30 EST 2007


Petar wrote:
> What is the better way of doing this? And should a class always
> reference only on 'item'?

It fully depends on what you want to do in your program. If you just
want to have a list of employees, a list or dict will suffice. If
you need a full-fledged employee database, an "Employees" class may
be a good API.

Regards,


Björn

-- 
BOFH excuse #83:

Support staff hung over, send aspirin and come back LATER.




More information about the Python-list mailing list