package com.fifino.patterns.prototype;

/**
 * Created by porfiriopartida on 2/18/16.
 */
public class Sheep implements Animal {
    public Sheep(){
        System.out.println("Making a sheep");
    }
    @Override
    public Animal makeCopy() {
        System.out.println("Cloning a sheep.");
        Sheep sheep = null;
        try {
            sheep = (Sheep) this.clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
        return sheep;
    }
}
