Recap A class is an expanded concept of a data structure Instead of only holding data, it can hold data and functions Gradebook XYZ; Private members of a class are accessible…