jeudi 23 avril 2015

Function return two objects

I have:

  • Class1 with Method1
  • Class2 with Method2
  • Class3 with Method3

In Method3:

return Class3(Class1.Method1(), Class2.Method2());

How should I create getFunction1 which return Class1.Method1() and getFunction2 which return Class2.Method2().

Aucun commentaire:

Enregistrer un commentaire