SAP interview question

OOPS concept - how polymorphism is used in JS