title: Designing inheritance functions in sibling classes
body: <p>I have a class <code>brotherClass</code> and a class <code>sisterClass</code> that both inherit from <code>parentClass</code>. A method called <code>getName()</code> is defined in <code>parentClass</code>. Currently, both child classes call <code>getName()</code> in the logic of some of their functions.</p>
  
  <p>Right now, our client wants us to make it such that there is a single class(?) external to both <code>brotherClass</code> and <code>sisterClass</code> that calls <code>getName()</code>. That way, both child classes can call that external function once, instead of twice in their own classes.</p>
  
  <p>I think in a way he wanted to save space/memory. Otherwise, he mentioned that I should implement some function that calls <code>getName()</code> somehow in <code>brotherClass()</code>, and that <code>sisterClass</code> should be able to access that too.</p>
  
  <p>I'm at quite a loss about how to move forward with this, and I pretty much typed this up verbatim. This is a very simplified version of the problem I'm facing at work now.</p>