UST interview question

Write a code on method overriding