+ 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 Answers
+ 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?