instance_variable_of_generic_class=genericclass #use this instance somewhere in the class some_method(instance_varable_of_generic_classfor examplewe have three classes emailgmail and yahoo in email class we are referring the gmail and using the concept of composition exampleclass gmaildef send_email(self,msg)print("sending '{}from gmailformat(msg)class yahoodef send_email(self,msg)print("sending '{}from yahooformat(msg)class emailprovider=gmail(def set_provider(self,provider)self provider=provider def send_email(self,msg)