Hexagon interview question

Oop characteristics. Implement method overloading in any language.