I have a class Sprite; constructor: Sprite(); and I declear a Sprite array, ship--> private Sprite ship¡£and then how can i construct it? ship =new Sprite();is passed when complie but failed when run.
Last edited by godener; 2003-12-23 at 10:09.
May-be obvious, but you did new the array as well, didn't you?
Sprite ship = new Sprite;
thanks kersing! I get it from you!