How to inherit multiple instances of a class from a single class in python
问题 Disclaimer: I am new to programming and have just started learning about Classes and Inheritance so perhaps it is my lack of understanding which is causing me issues? I have created two classes in seperate files person.py and address.py . The person class inherits from the address class however a person can have multiple addresses (postal, physical etc..) How can I inherit multiple instances of my address class to for each type. My goal is to eventually have a library of common classes for