[Tutor] Creating instances (group program revisited)

D-Man dsh8290@rit.edu
Wed, 28 Mar 2001 14:24:26 -0500


On Tue, Mar 27, 2001 at 12:25:41AM -0500, Benoit Dupire wrote:
| 
| Note1 : if you want your pb to be really OO, put  the loadFile function in a
| class... (see below)

Not quite.  OO stands for Object Oriented.  You don't _need_ classes
to make objects and operate in an object oriented way.  Python is OO
through and through.  There is nothing in Python that isn't an object.
Even functions are objects in Python.  Putting the loadFile function
into a class would be more class-based, but not necessarily more OO.
I'm not arguing that the function shouldn't be in a class, that
depends on the overall design, but to be OO doesn't require classes.
Only in Java, Eiffel, C++, and Smalltalk (not sure about Smalltalk
since I have never used or learned it).

-D