John Ken wrote:1.because you asked The Person class has a constructor that takes a string $name.
2. because The Book class has a constructor that takes a string $title and a Person $author
3.because The Book class has a getter that returns the title, and a getter that returns the author.
4.i don't understand what do you mean by camel case also i found some examples on google using this underscore methods any harm in using them?
John Ken wrote:Ok,as I have very little knowledge on these tough things so I say i really don't know what these $this etc. refer to but i think you would also have given same answer which i copied from internet isn't it?
You will always be treated with dignity. Now, strip naked, get on the probulator and hold this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!https://www.kickstarter.com/projects/paulwheaton/greenhouse-1