Pregunta de entrevista de Capita india

Q. write inheritance code to demonstrate the property