public class Classes {
public static void main(String[] args) {
//1. write a code that instantiates at least 10 different students (a few with the same last name and the same GPA)
Student s1 = new Student(3.7, 12,Johnson,Fred);
}
}public class Student{
private double gpa;
private int creditHrs;
private String fname;
private String lname;
public Student(double gpa, int creditHrs, String fname, String lname)
{
this.gpa = gpa;
this.creditHrs = creditHrs;
this.fname = fname;
this.lname = lname;
}
