Timeline for How can composed sub-objects access the parent object?
Current License: CC BY-SA 4.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 18, 2021 at 8:06 | history | edited | Flater | CC BY-SA 4.0 |
added 555 characters in body
|
| May 17, 2021 at 14:25 | comment | added | JimmyJames | I get it but the issue with building 'inside-out' objects is roughly similar in that the code that 'drives' the car becomes non-reusable. I find sometimes people get bogged down in whether a hypothetical example is realistic and miss the point. | |
| May 17, 2021 at 14:12 | comment | added | Flater | @JimmyJames: The point of the example was to retain one of the existing componenets from the original car isntead of chucking them both out, since I was focusing on reusability. | |
| May 17, 2021 at 13:38 | comment | added | JimmyJames | A more realistic example for your engine -> pedals example would be a something like a Tesla which has no engine or transmission and 2 motors. | |
| May 17, 2021 at 13:13 | history | edited | Flater | CC BY-SA 4.0 |
added 756 characters in body
|
| May 17, 2021 at 12:58 | history | answered | Flater | CC BY-SA 4.0 |