Do you mean that I should make the variables in Rectangle class public? If so, I did that and decided to use them in the right triangle class. This is the result.
public class RightTriangle...
Type: Posts; User: orbin
Do you mean that I should make the variables in Rectangle class public? If so, I did that and decided to use them in the right triangle class. This is the result.
public class RightTriangle...
Yes I store the same variable in two places. In the constructor I needed to send the numbers back to the super, but I also had to use the variables in other methods within the class to do different...
I just read through the tips you guys gave me, and worked my code over again. This is what I have...but am I understanding what you were getting at?
import java.util.Scanner;
public class...
Thank you for helping out! I think I'm going to leave the assignment the way it is. I figure I get the point, but it still bugs me that I would have to set the objects to 0,0 to put a right triangle...
I don't understand how I can have just one parameter for a constructor if it extends the Rectangle class. Don't you have to also take in the width and length of the rectangle too for the super...
We are supposed to create several classes including rectangle,square, and right triangle. Each class must have a uniform way of calling methods, hence abstract methods. What I don't understand is...