Advertisement
Guest User

Untitled

a guest
Nov 24th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. package Testat261117;
  2.  
  3. public class Aktiendepot {
  4. public int amount;
  5. public double value ;
  6.  
  7. public Aktiendepot (int amount,double value) {
  8. this.amount=amount;
  9. this.value=value;
  10. }
  11. public double Transaktionsgebühren(int amount){
  12. double packagePrice = 1;
  13. double singleCharge = 2;
  14. return singleCharge + amount*packagePrice;
  15. }
  16. public void erloes(int ){
  17. this.packagePrice=0;
  18. this.singleCharge=0;
  19.  
  20. System.out.println(packagePrice+fullAmountSingleCharge);
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement