clone
wat is the advantage of clone
jhon
February 17,
// 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( );
This topic is archived.
ActiveWidgets is a javascript library for creating user interfaces. It offers excellent performance for complex screens while staying simple, compact and easy to learn. Deployed by thousands of commercial customers in more than 70 countries worldwide.
Copyright © ActiveWidgets 2021