• 2022-10-27
    程序:class Birthday{int year;int month;int day;public Birthday(int year,int month,int day){year = year; month = month; day = day;}public static void main(String[] args){Birthday birth = new Birthday(1980,10,22); System.out.println(year);}}程序运行后的输出是哪项?
    A: 1980
    B: 10
    C: 22
    D: 0
    E: 编译出错