Hi, I am supposed to have a constructor that creates a new Triangle object, and assigns coordinates and measurements for the triangle.
Here is what I have:
but when I run the program, and create the object, it asks for the parameters, I specify them, but the parameters stay set to the same numbers. Im kind of confused, thanks.Code:
public Triangle(int xPos, int yPos, int height, int width)
Triangle aTriangle = new Triangle();