Create a class of students in a college make sure you


Using visual Studio

Create a class of students in a college. Make sure you include the following instance/member variables:
Name
Phone Number
Student Number
Current GPA

Create the default constructor. Assign some default values to the instance variables.

Create a non-default constructor. This non-default constructor will take all four variables as parameters, and set them to the instance variables.

Create a "displayValues()" member function in the class. This class will display the instance variables.

Finally, in the "main()" function, declare two Student objects, one that uses the default constructor, and one that uses the non-default constructor. Then, use the objects to call the "displayValues()" function to display the values of the student objects.

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Create a class of students in a college make sure you
Reference No:- TGS02387197

Now Priced at $10 (50% Discount)

Recommended (95%)

Rated (4.7/5)