Search:

Type: Posts; User: awinston

Search: Search took 0.09 seconds.

  1. Replies
    27
    Views
    2,665

    [SOLVED] Re: Basic help with Constructors and Classes

    1. How are you running this program?

    2. Can you print out the errors that you receive upon execution of the program?
  2. Replies
    27
    Views
    2,665

    [SOLVED] Re: Basic help with Constructors and Classes

    Do you have a specific question about your assignment?
  3. Re: How can i make my Player attack another Player?

    I think you mean instance variables, right?
  4. Replies
    2
    Views
    1,086

    [SOLVED] Re: Need BookTracker Class

    Are you perhaps reading Introduction to Object-Oriented Programming?

    I found this as well as your other 2 classes via google:...
  5. Replies
    5
    Views
    1,193

    Re: Program won't run help!

    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...
  6. Replies
    5
    Views
    1,193

    Re: Program won't run help!

    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.
  7. Replies
    5
    Views
    1,193

    Re: Program won't run help!

    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...
  8. Re: Having trouble dealing with objects using abstract methods/classes and polymorphi

    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...
  9. Re: Having trouble dealing with objects using abstract methods/classes and polymorphi

    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...
  10. Replies
    0
    Views
    954

    Hello, fellow programmers!

    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.
Results 1 to 10 of 10