Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Aktiendepot{
- public int amount;
- public double price;
- public Aktiendepot (int amount,double value) {
- this.amount=amount;
- this.value=value;
- }
- public double Transaktionsgebühren(int amount){
- double packagePrice = 1;
- double singleCharge = 2;
- return singleCharge + amount*packagePrice;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement