How can I use my getAge() methode : [enter image description here][1]


  [1]: https://i.stack.imgur.com/sVvHm.png

I have to make this AgeDiscount class, which have a method that generates a Age Discount. So if I am 21 years, i will get a discount of 21%.

So i need use my getAge from my Customer class. But i dont know how to pick it up?

public class AgeDiscount implements Discount {

	@Override
	public double getDiscountedPrice(double originalPrice) {

		return originalPrice;
	}

}
