OO Programming

BlitzMax Forums/BlitzMax Beginners Area/OO Programming

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I've been hearing modular design..not sure what that means..i hear independs being used too. So here's my questions

Type 2Dpoint
   Field X#,Y#
End Type

Type 2DPivot

   Field P:2DPoint 'position
   Field V:2DPoint 'vectors
   Field N:2DPoint 'unit circle

   Method New()

      P = New 2DPoint
      V = New 2DPoint
      N = New 2DPoint

   End Method

   Method Delete()

      P = null
      V = null
      N = Null

   End Method

End Type



is there anything bad with using objects in objects? Do they mean you shouldn't have to depend on other objects that say you import from another source file?