Are you sick and tired of creating long boilerplate code just for storing data? Do you feel that the following code is too much just to define a Student model?:
public class Student {
private String name;
private String roll_number;
private int age;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getRoll_number() {
return roll_number;
}
public void setRoll_number(String roll_number) {
this.roll_number = roll_number;
}
public int getAge() {
return age;
}
public void setAge(int age) {
this.age = age;
}
@Override
public int hashCode() {
return super.hashCode();
}
@Override
public String toString() {
return super.toString();
}
}
If you agree, then Kotlin's...