Search:

Type: Posts; User: javapenguin

Search: Search took 0.13 seconds.

  1. Replies
    3
    Views
    1,357

    Re: Trouble using aggregate classes

    No it's not inheritance. If anything, it's composition (or aggregation) hence the thread title.
  2. Replies
    3
    Views
    1,357

    Re: Trouble using aggregate classes

    You could always have both.

    Create a second one that will initialize your current object to the values of the parameter object.

    Use getters and setters, like setLength(), setWidth(),...
Results 1 to 2 of 2