/* * Payment.java * * Created on 17 August 2007 * * An abstract class. Super class for payment types. */ package loan; /** * * @author merethe */ abstract public class Payment { /** Creates a new instance of Payment */ public Payment(){ } /** * Calculate and return the payment * @param years Number of years * @param money Amount of money * @param interest Interest per year * @return A string with the calculated results */ abstract public String calculate(int years, int money, double interest); /** * Format the calculated result * @param years Number of years * @return A the formatted calculation */ abstract public String show_calculation(int years); }