الرجوع
تسجيل الدخول

What will happen when you try to compile and run the code?

class Student {
    private int age = 20;

    private int getAge() {
        return age;
    }
}

public class School {
    public static void main(String[] args) {
        Student student = new Student();
        System.out.println(student.getAge());
    }
}