Java~~~~~~~
you will use inheritance. Your project should include fourclasses as described below.
Create a class that contains the main method. This class shouldhave a main method (required) and can have more static methods(optional). The method(s) should perform the following tasks:
Create an object/instance of the employee class, an object ofthe salaried class and an object of the contractor class (describedbelow). You will have a minimum of 3 objects (1 employee, 1salaried, 1 contractor).
Create an array of employee objects. Put all instances of theemployee class, salaried class and contractor class into thearray.
Call the payCheck method with each employee object in the arrayand display
PayPal Gateway not configured
PayPal Gateway not configured