3.0.0

clone

wat is the advantage of clone
jhon
February 17,
Clone => Copy all properties from objet to a new object.
Advantage? U dont need to copy properties in manually mode.
// manually
Car car1 = new Car();
car1.setColor("red");
car1.setName("bmw");
car1.setYear("2007");

Car car2 = new Car();
car2.setColor(car1.getColor());
car2.setName(car1.getName());
car2.setYear("2007");

// clone
car2 = car1.clone( );
Pc (from Brazil)
February 17,

This topic is archived.

See also:


Back to support forum

Search

Version 2

Looking for AW 2.6 ?
The old site is here.