Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package Testat261117;
- public class Aktiendepot {
- public int amount;
- public double value ;
- 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;
- }
- public void erloes(int ){
- this.packagePrice=0;
- this.singleCharge=0;
- System.out.println(packagePrice+fullAmountSingleCharge);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement