="r-in"><span><span class="fu"><a href="register_method.html">register_method</a></span><span class="op">(</span><span class="va">O</span>, foo <span class="op">=</span> <span class="kw">function</span><span class="op">(</span><span class="op">)</span> <span class="op">{</span></span></span>
<span class="r-in"><span>  <span class="fu"><a href="https://rdrr.io/r/base/print.html" class="external-link">print</a></span><span class="op">(</span><span class="st">"Calling class O `foo` method"</span><span class="o