الرجوع
تسجيل الدخول
public class Student {
    private String name;
    private int age;

    public void setName(String name) {
        this.name = name;
    }

    public void setAge(int age) {
        age = this.age;
    }

    // ...
}

Assuming Student object student is properly instantiated, what will happen after these methods are called?

student.setAge(20);
student.setName("John");