vendredi 21 octobre 2016

How to implement two classes using if statement [on hold]

I was wondering is there any way we can implement two classes like below.

if(condition1){
    do everything(methods and all)in Class1
}
else{
    do everything(methods and all) in class2
}

I know how to do using each method using Class object. There will be something make easy to do things.

Aucun commentaire:

Enregistrer un commentaire