Oct-12-2018, 08:42 PM
Lars60+ - I would still like to know where you got the code you posted. I understand you wrote it, but I would be very interested to know where you learned.
I wrote it. It's standard class layout.
to do it the way you were trying, that is to use another class as object of a class, you need to initialize the object
within the init of the new class.
As far as where I learned how to do this, I don't have a clue, coming from c++ background, I was already familiar with the basic concepts.
David Beazley is a Great author, and an even better speaker! You should be able to get his code to work without problems, perhaps re-read the section.
I wrote it. It's standard class layout.
to do it the way you were trying, that is to use another class as object of a class, you need to initialize the object
within the init of the new class.
As far as where I learned how to do this, I don't have a clue, coming from c++ background, I was already familiar with the basic concepts.
David Beazley is a Great author, and an even better speaker! You should be able to get his code to work without problems, perhaps re-read the section.