def __init__(self, interface):
        """
        Initialize a new Composite instance.

        @param interface: The interface the all child components must adhere to when added to this composite.
        @type interface: class
        """
        self.components = set()
        self.interface = interface

        Initialize a new Composite instance.

        @param interface: The interface the all child components must adhere to when added to this composite.
        @type interface: class
        
pypattyrn/structural/composite.py