Hi, so just a quick one.
Say you have two classes:
Savings and Debt
Savings has a contructor name like:
public Savings (String name, String type, double anAmount)
Debt has a constructor name like:
public Debt (String name, String type, double anAmount)
So the question i'm asking is how can you write a public instance method which has two arguments, for example savingsToDebt (String name, double anAmount) which take the String name and double anAmount from the Savings constructor method?
So the end result would be that Debt has taken from Savings.
If that didnt make any sence please let me know!
Any help would be really cool, just a little info on how to do this would really help me out.
Thank you! :(-: