t co"><span class="r-pr">#&gt;</span> [1] "Self is a"</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> [1] "Next class is E"</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> [1] "Calling class E `foo` method"</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> [1] "Next class is C"</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> [1] "Calling class C `foo` method"</span>
<span class="r-out co"><span class="r-pr">#&gt;</span> [1] "Self is a"</span>
<span class