No it's not inheritance. If anything, it's composition (or aggregation) hence the thread title.
Type: Posts; User: javapenguin
No it's not inheritance. If anything, it's composition (or aggregation) hence the thread title.
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(),...