package com.sibisoft.faizaniftikhartdd;

public class Franc extends Money 
{
	public Franc() 
	{
		
	}
	public Franc(int amount)
	{
		this.amount= amount;
	}
	Franc times(int multiplier) 
	{
		return new Franc(amount * multiplier);
	}
	public boolean equals(Object object) 
	{
		Franc franc= (Franc) object;
		return amount == franc.amount;
	}

}







package com.sibisoft.faizaniftikhartdd;

public class Franc extends Money 
{
	public Franc() 
	{
		
	}
	public Franc(int amount)
	{
		this.amount= amount;
	}
	Franc times(int multiplier) 
	{
		return new Franc(amount * multiplier);
	}
	public boolean equals(Object object) 
	{
		Money franc= (Franc) object;
		return amount == franc.amount;
	}

}







Change the declaration of Equal method's wiht Money