UST interview question

,overriding,oops concept