Question d’entretien chez Infosys

what is the difference between encapsulation and inheritance?