Naaptol interview question

write program on methodoverriding and explain.