interface1 i;if(....) i=new class1();else i = new class2();
Originally posted by aymane chetibi: I know it's allowed is it dynamic biinding ??
Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch Getting someone to think and try something out is much more useful than just telling them the answer.