Xceedance interview question

how to write inheritance