I was watching the video of the polymorphism exercise, but I think the solution video is not showing polymorphism since each of the objects has its own render method as its own member
the solution video is more talk about the templating with es6
I confused where the polymorphism is since in the video that explain about polymorphism, you show how to modify the method from Parent to make the behavior a little bit different for each child
while in the exercise solution video, the parent object doesn’t have a render method while the child has their own render method, so where is the polymorphism?
Hi am Harvel, it seems you got the concept of what polymorphism is, so don’t hang up on the details that might confuse you. If a parent method is being re implemented in the children with different behaviour that’s polymorphism