How to use/add a method in the subclass when it's not present in the superclass(Actor)?
The constructor in the subclass calls the superclass constructor so it uses the superclass act() method where the subclass method is not present. So, it's not working.