Created
September 17, 2013 06:52
-
-
Save Juriy/6590848 to your computer and use it in GitHub Desktop.
Sample account
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.juriy.threads; | |
/** | |
* @author Juriy Bura | |
*/ | |
public class Account { | |
private int number; | |
private int amount; | |
public Account(int number, int amount) { | |
this.number = number; | |
this.amount = amount; | |
} | |
public int getNumber() { | |
return this.number; | |
} | |
public int getAmount() { | |
return this.amount; | |
} | |
public void updateAmount(int delta) { | |
this.amount += delta; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment