• 2021-04-14
    下面程序的输出结果是:

    classMyclass{

    staticintmember;

    }

    publicclassTest{

    publicstaticvoidmain(Stringargs[]){

    MyclassA=newMyclass();

    MyclassB=newMyclass();

    Myclass.member=1;

    A.member=2;

    B.member=3;

    System.out.println('member='+Myclass.member);

    }

    }

  • 举一反三