<div dir="ltr"><div class="gmail_quote">On Sat, May 19, 2012 at 2:10 AM, Jorge Aldo G. de F. Junior <span dir="ltr"><<a href="mailto:jagfj80@gmail.com" target="_blank">jagfj80@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
You simply cant do it. Not even multiple inheritance would help you in<br>
this case.<br>
<br>
You will have to extend each class by hand.<br>
<br>
Multiple inheritance would allow you to join back branches in the<br>
class hierarchy, but in this case you want to add the same<br>
functionality to multiple branches, but keep the branches separate<br>
entities. This is impossible with current freepascal OOP and i dont<br>
think this is even a good thing to have.<br>
<br></blockquote><div><br>I have no Idea about "multiple inheritance".<br><br>I am thinking now if i can assign a helper to more than one class by make base helper, then inherit it for every class B1 and B2.<br>
I will try and post a feedback.<br> </div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
It could be done multi-class helper, kind of class helper that works<br>
on multiple classes. But i dont even know of a language that has such<br>
possibility (i dont know much languages anyway).<br></blockquote></div><br>I hope i can find one, not for me for my kids in the future ;)<br><div dir="ltr"><br>Best Regards<br>Zaher Dirkey</div><br>
</div>