home *** CD-ROM | disk | FTP | other *** search
/ OpenStep (Enterprise) / OpenStepENTCD.toast / OEDEV / EODEV.Z / Fee.h < prev    next >
Encoding:
Text File  |  1996-08-23  |  640 b   |  30 lines

  1. /*
  2.         Copyright (c) 1996, NeXT Software, Inc.
  3.         All rights reserved.
  4.  
  5.         You may freely copy, distribute and reuse the code in this example.
  6.         NeXT disclaims any warranty of any kind, expressed or implied,
  7.         as to its fitness for any particular use.
  8. */
  9. #import <EOControl/EOControl.h>
  10.  
  11. @class Rental;
  12.  
  13. @interface Fee : NSObject
  14. {
  15.     NSCalendarDate *datePaid;
  16.     NSDecimalNumber *amount;
  17.     Rental *rental;
  18.     id feeType;
  19. }
  20.  
  21. - (void)pay;
  22.     // Called when a fee is paid.
  23.  
  24. - (BOOL)isPaid;
  25.     // To know if the fee is still due.
  26.  
  27. - initLateFeeWithDateDue:(NSCalendarDate *)date rental:(Rental *)rental;
  28.  
  29. @end
  30.