File spoon-archives/frankfurt-school.archive/frankfurt-school_1997/frankfurt-school.9706, message 13


Date: Wed, 25 Jun 1997 11:24:05 -0500
From: Scott Johnson <sjohn-AT-cp.duluth.mn.us>
Subject: K. in hell


I found this in a discussion of object-oriented programming using the
Perl language. You may provide your own commentary...

"One big advantage of encapsulation is that it makes using information
for unintended purposes more difficult, and this reduces logic errors.
For example, if pens were sold in lots of 100, the
changeQuantityOnHand() function would reflect this. Changing the
quantity by only one would not be possible. This enforcement of business
rules is one of the biggest attractions of object-oriented programming."
-- 
                     Scott Johnson

105 W. 1st St. #214                sjohn-AT-cp.duluth.mn.us
Duluth, MN   55802             voice/fax  (218) 722-1351

  http://www.cp.duluth.mn.us/~sjohn/sjohn_on.html

   

Driftline Main Page

 

Display software: ArchTracker © Malgosia Askanas, 2000-2005