Inheritance is a fundamental principle in object-oriented programming that allows a new class to inherit properties and behaviors from an existing class, promoting code reuse and hierarchical relationships. It also refers to the legal process through which individuals receive assets or obligations from a deceased person's estate, governed by laws and wills.