home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / xbase / compiler / doobject / method.do < prev    next >
Text File  |  1991-03-18  |  268b  |  25 lines

  1. /*
  2.     method definition
  3. */
  4. method X::test3(self) 
  5. {
  6.     return(self);
  7. }
  8.  
  9. /*
  10.     this method defines the "lt" operator for class "x"
  11. */
  12. method X::<(self)
  13. {
  14.     return(11);
  15. }
  16.  
  17.  
  18. /*
  19.     main program
  20. */
  21. inherit(Object,X,[]);
  22. a = new(X);
  23. ? "a = ",a;
  24. show methods;
  25.