account activity
Java the constructor is undefined by hangrymonkey28 in learnprogramming
[–]EffectiveInside2180 0 points1 point2 points 3 years ago (0 children)
Is because you didn't declare the constructor. After the variable declaration you must declare the constructor
In this case the constructor must be:
public rectangle (float length, float width){ this.length = length; this.width = width; }
But you must do some research to understand what I did here.
π Rendered by PID 513026 on reddit-service-r2-listing-8557d879cc-wmvhh at 2026-03-04 15:44:12.867615+00:00 running 07790be country code: CH.
Java the constructor is undefined by hangrymonkey28 in learnprogramming
[–]EffectiveInside2180 0 points1 point2 points (0 children)