Create student1 object by calling the overloaded


QUESTION:

Create a class named Student

Add a static attribute named numStudents

Add private attributes with public setters (only) for:

firstName (String)

lastName (String)

grades (int[4])

Create public methods:

getGPA that returns a double of the average of the values in the grades array (assume each student takes all four classes)

Create a default constructor that increments numStudents

Created an overloaded constructor that takes three arguments (fName, lName, int[]) and assigns them to the local private variables. Be sure to call the default constructor in the first line of the overloaded constructor.

Create student1 Object by calling the overloaded constructor for the student Jack Willson. Set the grades array with the values {4, 2, 3, 3}

Include a method to Display data members of Student Object.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Create student1 object by calling the overloaded
Reference No:- TGS02910635

Expected delivery within 24 Hours