Welcome to the forum! Thank you for taking the time to learn to post code correctly. If you haven't already, please read this topic
to learn other useful info for new members.
And, ironically, your perimeter() and area() methods are wrong. One of the purposes of a class' constructor is to initialize the object's instance variables. Your constructor signature is correct, your class has the instance variables or fields it needs, and you call the constructor properly, but the constructor's empty body does nothing.
Remedy: Modify the constructor so that the parameters passed to it are used to initialize the object's instance variables. Modify the area() and perimeter() methods so that they do not take parameters but use the object's instance variables to calculate the answer that is returned.
Once you've corrected the class, you will likely want to rethink how the main() method tests it.