Demeter Engineering The Law of Demeter in Object Oriented Programming The Law of Demeter in Object Oriented Programming is a programming concept that ensures code cleanliness by reducing classes' dependencies and encouraging independent code.