Question: class Student private int id; private String name public Student 1 id=8 name=John 1 public int getid return id. 1 public String getname) return name:


class Student private int id; private String name public Student 1 id=8 name="John 1 public int getid return id. 1 public String getname) return name: 1 public void seti(int newid Id newid; 1 public void setname(String newname) 1 name = new name: > public String toString 1 String result = Integer toString(d) name: return result 3 class TestStudenti { public static void main(String args[]) Student so=new Student(); System.out.printin(s); Student si-new Studenti): si.setid(312): si setname["Patrick"); System.out.printin(ID i5 +51 getid); System.out.println("The student name is +51 getname()); mediate Java Programming 1709 0 DelPo > Assignments > objects objects at Submit Assignment Due Sunday by 11:59pm Points 50 Available after Mar 7 at 12am Submitting a text entry box or a file upload Modify the objectstudent JAVA program to add a private variable zipcode, you must also add setters and getter methods for the new variable and modify the toString method. The objectstudent program is in this weeks module, you can give it a default value of 19090 Next Previous
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
