Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Replies
    7
    Views
    1,028

    Re: Classes and Array of objects

    Is the add() method supposed to gather the information needed to create a House object and then create an object?
    When it has a House object, what is it supposed to do with that object?
    What class...
  2. Replies
    7
    Views
    1,028

    Re: Classes and Array of objects

    Work on the methods one at a time.
    What is the add() method supposed to do?


    This line of code makes it look like you are copying and pasting lines without thinking:

    public static void...
  3. Replies
    7
    Views
    1,028

    Re: Classes and Array of objects

    If the classes all derive from a common base class, you could create an array of that class:

    TheBaseClass[] assets new TheBaseClass[5];

    If there is no base class, the type of the array would be...
Results 1 to 3 of 3