In this exercise, you’ll implement the cloneable

  

In this exercise, you’ll implement the Cloneable interface for the Product and LineItem classes.

1. Open the project named ch_09_ex3_CloneableTest in the ex_starts directory. Display the ProductCloneApp class and review its code.

2. Implement the Cloneable interface for the Product class. Then, compile the Product and ProductCloneApp classes. If you implemented the Cloneable interface correctly, the ProductCloneApp class should compile.
3. Run the ProductCloneApp class to make sure it works correctly.

4. Repeat steps 1 through 3 for the LineItemCloneApp and LineItem classes.

"Get 15% discount on your first 3 orders with us"
Use the following coupon
"FIRST15"

Order Now