Search:

Type: Posts; User: maple1100

Search: Search took 0.10 seconds.

  1. Replies
    9
    Views
    1,072

    Re: Array of object

    It say the length is 2. Does each new ShapesV8 count as one? Or each number count as one? Kind of lost here sorry. So is new ShapesV8(10, 5) one element and new ShapesV8(7, 13) another elements? ...
  2. Replies
    9
    Views
    1,072

    Re: Array of object

    So just like a normal array, this array of object have .length of 4?
  3. Replies
    9
    Views
    1,072

    Re: Array of object

    So since there is two items in the shapes array of object, the program automatically run through both of the item?



    ShapesV8[] shapes = {new ShapesV8(10, 5),
    new...
  4. Replies
    9
    Views
    1,072

    Re: Array of object

    The elements of the array are use as int s1 and int s2 in the constructor. The program is to calculate the area of triangle. So one triangle have a side of 10 and 5 while the other triangle have a...
  5. Replies
    9
    Views
    1,072

    Array of object

    Could someone explain to me how array of object work? Like in this code below, how does the program know when to use the second shapes in the shapes array? "new ShapesV8(7, 13)"


    class ShapesV8...
Results 1 to 5 of 5