Re: [Tutor] Aggregation vs Composition

2017-12-11 Thread Alan Gauld via Tutor
On 11/12/17 00:40, boB Stepp wrote: > I own this book, too. I'll insert the portions of the text that I > believe the OP is referring to. Thanks for the clarification Bob. >>> composition is aggregation* > > On page 18 the author goes on to use a chess set as an example... > > He continues in

Re: [Tutor] Aggregation vs Composition

2017-12-11 Thread Neil Cerutti
On 2017-12-10, jia yue Kee wrote: > Good Day All, > > I am new to Python and I came across the concept of Composition > and Aggregation the other day in Dusty Philips's Python 3: > Object-Oriented Programming book. Welcome! > Based on my reading, what I gathered was that Composition > implies a

Re: [Tutor] Aggregation vs Composition

2017-12-10 Thread boB Stepp
I own this book, too. I'll insert the portions of the text that I believe the OP is referring to. On Sun, Dec 10, 2017 at 3:01 AM, Alan Gauld via Tutor wrote: > On 10/12/17 05:07, jia yue Kee wrote: > >> in Dusty Philips's Python 3: Object-Oriented >> Programming book. > > Caveat: I've not read

Re: [Tutor] Aggregation vs Composition

2017-12-10 Thread Alan Gauld via Tutor
On 10/12/17 05:07, jia yue Kee wrote: > in Dusty Philips's Python 3: Object-Oriented > Programming book. Caveat: I've not read this book so can only guess at what the author might be meaning. > Based on my reading, what I gathered was that Composition implies a > relationship where the child can

[Tutor] Aggregation vs Composition

2017-12-10 Thread jia yue Kee
Good Day All, I am new to Python and I came across the concept of Composition and Aggregation the other day in Dusty Philips's Python 3: Object-Oriented Programming book. Based on my reading, what I gathered was that Composition implies a relationship where the child cannot exist independent of t