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

Fails: syntactic vs. semantic

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