Last Updated: February 25, 2016
·
1.027K
· drdrej

Fails: syntactic vs. semantic

  if( condition ) {
      component =  new ComponentA();
      component.onCreate();
  } else
component = new ComponentB();
component.onCreate();