y, z.
And an object of type B with properties x, y, z'.
I wanna create a constaractor for A, which uses x and y of a B instance to fill itselfs x and y. which format is better?
public A(myB.getX(), myB.getY())
or
public A(myB)
pass the object to first class and access the methods
Обсуждают сегодня