Closed koyan closed 4 years ago
Person.speak(self, salutation)
should work. Can we see more code, e.g. how are you calling AgedPerson:speak
?
What does "didn't get it right" mean?
Sorry, when I went to recreate the example it works, so I probably did something wrong the first time :-( Please ignore/delete this issue.
Your problem is here:
function AgedPerson:speak(***salutaion***)
Person.speak(self, ***salutation***)
Your parameter is salutaion
and you're using salutation
.
I actually noticed this typo, but my brain auto-corrected it.
Thanks. Apparently when I tried to recreate it I did not do the mistake. That should teach me to copy/paste more instead of typing :-P
Hi there, In the documentation, in the quick example we can read:
and then
How does one go to do the same but with a method that has parameters?
(Aka, if the first
function Person:speak()
had a parameter itself) likeI tried
But I didn't get it right.
Is this possible? Thanks