Can anyone please provide me with a very simple example of how you overide methods and the benefits of doing so as I am having lots of problems trying to figure it out.
Any advice would be great.
Jason.
Any advice would be great.
Jason.
Type vehicle Abstract Method upgrade:vehicle() Abstract Method move() 'assuming all vehicles move in the same way put common code in this type End Method End Type Type smallship Extends vehicle Method upgrade:vehicle() Local newvehicle:vehicle = New largeship Return newvehicle End Method End Type Type largeship Extends vehicle Method upgrade:vehicle() Local newvehicle:vehicle = New nextship Return newvehicle End Method End Type ''''''''' Local player:vehicle = New smallship player = player.upgrade() 'now a bigship