/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package patternjavaimplementation;


public class Q4Client {

 
    public static void main(String[] args) {
        Complex a = new Complex(3,  5);
        System.out.println("Original:"+a);

        Complex f= (Complex) a.clone();
        System.out.println("Clonned:"+f);

        f.change(4, 6);
        System.out.println("Original:"+a);
        System.out.println("Clonned:"+f);
    }
}
