Question d’entretien chez Motorola Solutions

what is inheritence, write the code what is enum difference between function and method identify the errors in the code