title: Different types of variables with the same name into a function
body: <p>I have this code and I'm wondering if it is possible to do something like that:</p>
  
  <pre><code>    switch (typeActivity) {
      case 0:
          Type1Activity aux=activity1;
          break;
      case 1:
          Type2Activity aux=activity2;
          break;
      case 2:
          Type3Activity aux=activity3;
          break;
  
      default:
          break;
      }
  </code></pre>
  
  <p>Great thanks to you in advance.</p>