In java please.
// Given the following class declaration, write a defaultconstructor that initializes both private variables to 1. Do notadd or change any other code. class Rectangle { private int height;private int width; public int area() { return this.height *this.width; } }
Expert Answer
An answer will be send to you shortly. . . . .