method.bmx 206 B

123456789101112131415
  1. Rem
  2. Method marks the beginning of a BlitzMax custom type member function.
  3. End Rem
  4. Type TPoint
  5. field x,y
  6. Method ToString$()
  7. return x+","+y
  8. End Method
  9. End Type
  10. a:TPoint=new TPoint
  11. print a.ToString()