グラフィック画像を処理するクラス cShape があります。コンストラクターの開始位置を取ります。開始位置をランダムにしたいので、次のコードがあります
cBalloon(Context InContext, int w, int h) {
// set up random postion
Random randomGenerator = new Random();
int sx=randomGenerator.nextInt(w);
int sy=randomGenerator.nextInt(h);
super( InContext, sx, sy, 0,0, 50,50, "balloon", 50,50,0);
}
" " というエラーが表示Constructor class must be first in a constructor
されます。これを行う方法はありますか?