@Test public void whenSquareCalculateWithArgumentThreeThenResultEighteen() { Square sq = new Square(1f,2f,3f); assertThat(sq.calculate(3), is(18f)); }
public float calculate (int x) { return (float) ((this.a*Math.pow(x,2)) + (this.b * x) + this.c); }
Square { public float calculate (int x) { return (float) ((this.a*Math.pow(x,2)) + (this.b * x) + this.c); } }
Square { public float calculate (int x) { return (float) ((this.a*Math.pow(x,2)) + (this.b * x) + this.c); } Square(float a, float b, float c); }
Square { public float calculate (int x) { return (float) ((this.a*Math.pow(x,2)) + (this.b * x) + this.c); } Square(float a, float b, float c); float calculate(int x); void show(int start, int finish, int step); }
Square { public float calculate (int x) { return (float) ((this.a*Math.pow(x,2)) + (this.b * x) + this.c); } Square(float a, float b, float c); float calculate(int x); void show(int start, int finish, int step);  }