+ 1
Why super.bioData() not doing it's job?
How can I use super for accessing instance methods of parent class https://code.sololearn.com/cw6SKl3IBYV2/?ref=app
3 odpowiedzi
+ 4
Mohd Aadil
Use this.bioData() instead of super.bioData()
+ 3
Mohd Aadil
Because you are calling bioData() function using object of player1 so in this case super will not work that's why you are getting error "bioData()" not a function.
I think you have to watch that video again. There implementation of super maybe different
0
Hello A͢J - S͟o͟l͟o͟H͟e͟l͟p͟e͟r͟ Sir
But why not super.bioData()
I watched a video and he did the same thing as I but his code worked than Sir why not mine?