Question: java Create a class called Student that has 2 private data members: ID (long) - GPA (double). Additionally, the class should have: Two accessor method
Create a class called Student that has 2 private data members: ID (long) - GPA (double). Additionally, the class should have: Two accessor method (get) for ID and GPA. One set method for ID and GPA. A method prints to output ID, GPA Write a java program that creates an object called stl of type class student then test all the methods in the student class
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
