Advertisement
Guest User

Class Karte

a guest
Jun 25th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. public class Karte {
  2. private char symbol;
  3. private int werte;
  4.  
  5. public Karte(char symbol, int werte) {
  6. this.symbol=symbol;
  7. this.werte=werte;
  8. }
  9.  
  10. public char getSymbol() {
  11. return symbol;
  12. }
  13.  
  14. public void setSymbol(char symbol) {
  15. this.symbol = symbol;
  16. }
  17.  
  18. public int getWerte() {
  19. return werte;
  20. }
  21.  
  22. public void setWerte(int werte) {
  23. this.werte = werte;
  24. }
  25.  
  26. @Override
  27. public String toString() {
  28. return symbol + " - " + werte;
  29. }
  30.  
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement