Question: java Complete the class below by writing the proper implementation of the method printInfo as instructed in the comment: public class Student private int id;
javaComplete the class below by writing the proper implementation of the method printInfo as instructed in the comment: public class Student private int id; private String name: public Student(int a, String b) id a; name-b; 7 public int getldo return id; public int getName { retum name: /*Write a void method named printInfo that displays the id value along with the name value for the calling object assuming that each of id and name are assigned real values */
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
