Both ethical altruism and ethical egoism contrast with utilitarianism, which maintains that each agent should act in order to maximise the efficacy of their function and the benefit to both themselves and their co-inhabitants.
bˈoʊθ ˈɛθɪkəl ˈɔːltɹuːˌɪzəm ænd ˈɛθɪkəl ˈiːɡoʊˌɪzəm kˈɑːntɹæst wɪð jˌuːɾɪlɪtˈɛɹiənˌɪzəm, wˌɪtʃ meɪntˈeɪnz ðæt ˈiːtʃ ˈeɪdʒənt ʃˌʊd ˈækt ɪn ˈɔːɹdɚ tə mˈæksɪmˌaɪz ðɪ ˈɛfɪkəsi ʌv ðɛɹ fˈʌŋkʃən ænd ðə bˈɛnɪfˌɪt tə bˈoʊθ ðɛmsˈɛlvz ænd ðɛɹ kˈoʊɪnhˈæbɪtənts.