This example shows how a child class inherits from a parent class in Python. First, the Parent class is defined with a greet method. Then, the Child class is defined to inherit from Parent but does not add any methods. When we create an object c of Child and call c.greet(), Python looks for greet in Child. It is not found there, so it looks in Parent and finds it. The greet method from Parent runs and returns the string 'Hello from Parent', which is printed. This shows inheritance where the child class uses the parent's methods if it does not have its own version. If Child had its own greet method, that would be used instead, demonstrating method overriding.