A class Rectangle Rectangle will have a constructor which takesfour explicit parameters, height, width, x, and y. All fourarguments are expected to be of type int. x and y represent theorigin point of the given rectangle. The origin point will be inthe upper left-hand corner of a canvas. Parameters x and y shouldhave default values of zero. The values received as parametersshould be stored in instance variables of the same name.
Answer