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 are HERE! The other map is obviously wrong. Better confirm with this tiny ad:
Two software engineers solve most of the world's problems in one K&R sized bookhttps://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton