package com.codegym.task.task05.task0520;
/*
Create a Rectangle class
*/
public class Rectangle {
//write your code here
int top;
int left;
int height= 0 ;
int width= 0 ;
public Rectangle(int top,int left,int height,int width){
this.top = top;
this.left = left;
this.height = height;
this.width = width ;
}
public Rectangle(int top,int left,int height){
this.top = top;
this.left = left;
this.height = height;
this.width = height ;
}
public Rectangle(int top,int heigth){
this.top = top;
this.left = top;
this.height = height;
this.width = height;
}
public Rectangle(int top){
this.top = top;
this.left = top;
}
public static void main(String[] args) {
}
}
It has passed the verification but it shows my solution is better than only 1 % of others .
Under discussion
Comments (2)
- Popular
- New
- Old
You must be signed in to leave a comment
ThomasLC
30 May 2019, 08:06
The "better than % of others" is only based on how many tries you take to verify. It has no indication on how good the code is.
0
Deep Maheshwari
29 May 2019, 06:01
Can someone give better solution than this ?
0