Explanation
We implemented an Animal class, which has name and sound properties, and a method, Animal_details(), which is overridden in its child classes.
Then, we implemented the Dog and Sheep classes, which are inherited from the Animal class.
Dog has an additional property, family, and the overridden method, Animal_details(). This method calls the parent method using the super() function and also prints the family property.
Sheep has an additional property, color, and the overridden method, Animal_details(). This method calls the parent method using the super() function and also prints the color property.
We created and initialized Dog and Sheep objects and printed their traits by calling their respective methods.