我对安卓很陌生。
对java也很陌生,所以请随时给我一些建议,我会非常感激的。
问题在lunarlander.java中
/** A handle to the thread that's actually running the animation. */
private LunarThread mLunarThread;
/** A handle to the View in which the game is running. */
private LunarView mLunarView;
class LunarView extends SurfaceView implements SurfaceHolder.Callback {
/** Handle to the application context, used to e.g. fetch Drawables. */
private Context mContext;
/** Pointer to the text view to display "Paused.." etc. */
private TextView mStatusText;
class LunarThread extends Thread
我只学习了C和C++
所以我不明白为什么我可以调用一个内部类??