according to my post above.. where should i plase the formula 0.5*height*base is it to the Triangle class or the area?
Type: Posts; User: darking123
according to my post above.. where should i plase the formula 0.5*height*base is it to the Triangle class or the area?
help me add those methods to my program??
how will i add public void setBase(double x) and public void setHeight(double x) also the public Triangle(double h, double b); to my program??
bump!!!!!!!!!!
i do not know what will i do the the constructor and how will i add the other to my program
how will i do this??
private double height;//Height
private double base;//Base length
public Triangle(double h, double b);//Constructor
public void setHeight(double x);//Sets height
...