Studentid Name Gpa: Package Public Class Int Double Public Int Double
The document defines a Student class with fields for student ID, name, and GPA. It includes a constructor, getter and setter methods for GPA, and a display method. The TestStudent1 class creates two Student objects, sets their fields, and calls the display method to output their information.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
24 views2 pages
Studentid Name Gpa: Package Public Class Int Double Public Int Double
The document defines a Student class with fields for student ID, name, and GPA. It includes a constructor, getter and setter methods for GPA, and a display method. The TestStudent1 class creates two Student objects, sets their fields, and calls the display method to output their information.