Design a Student class with attributes id, name,
age and grade; a default and a parameterised constructor; getters and setters for all
attributes; displayInfo(); and isPassed() returning true when the grade is at least
50. Then write StudentApp, whose main creates two students (one with each constructor),
modifies one with setters, and calls both methods.
Problem
Write it here or in your IDE, then paste it. Compile and test it yourself before comparing. Your code stays in your browser — it is never sent to or stored on the server.
Model solution