1. How are you running this program?
2. Can you print out the errors that you receive upon execution of the program?
Type: Posts; User: awinston
1. How are you running this program?
2. Can you print out the errors that you receive upon execution of the program?
Do you have a specific question about your assignment?
I think you mean instance variables, right?
Are you perhaps reading Introduction to Object-Oriented Programming?
I found this as well as your other 2 classes via google:...
That's okay!
I'm assuming that you want to create a piggy-bank and print its contents, correct?
In the method named "main", which is at the top of your code:
...you want to create a...
And this is because you don't have anything in your main method. If you want code to execute, then you must add it to your main method.
Your main method is empty. Are you receiving error messages when you try to run this program, or is nothing happening? If it is the latter, then you simply have to add some code to your main method...
I think you might be under the impression that the arguments in the constructor of a subclass have to mirror the arguments in the constructor of its superclass, and this is not the case. A subclass...
For Square, you can just have one parameter for its constructor because it's length and width are the same.
However, I don't think it makes sense to have the right triangle extend Rectangle. A...
I'm an incoming sophomore in high school. I took AP Computer Science as a freshman, so I have limited knowledge of Java. Currently, I'm using a book in order to learn the more advanced topics.