20th Jan 2022, 12:11 PM
Emma-Okerhe Excel
Emma-Okerhe Excel - avatar
5 Respostas
+ 1
Missing a square bracket before public double area() public rectangle (double length ,double breath ){ this.length = length; this.length = breath; //method } public double area(){ return length*breath; } }
20th Jan 2022, 12:57 PM
Be Luchesse
Be Luchesse - avatar
+ 1
In the constructor, you assigned both <length> and <breath> argument into 'length' member. I think you meant to do this instead. this.length = length; this.breath = breath;
20th Jan 2022, 3:25 PM
Ipang
+ 1
And you need to have a main method in that rectangle class.
20th Jan 2022, 5:11 PM
Ipang
0
Thank you so much
20th Jan 2022, 1:12 PM
Emma-Okerhe Excel
Emma-Okerhe Excel - avatar
0
🥺🥺
20th Jan 2022, 3:38 PM
Emma-Okerhe Excel
Emma-Okerhe Excel - avatar