Java program using two classes
hi,
im new to java and to this site so it's good to meet u all
ok now with my problem, the problem is that i need to set u a add coin system which seems simple but my problem is i have to do it using 2 classes a money class which has the code and then a gui with the buton and a text box on but i dont know what to put on the gui side i think ive got the money class done
any help with this problem would be great cos ive had this problem now for a couple of days
this is my money class
Code :
public class Credit {
private float credit;
public Credit(){
credit = 0;
}
public float addCredit(){
credit = + 10;
return credit;
}
}