Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. public class Einkaufspostens
  2. {
  3. public static void main(String[] args)
  4. {
  5.  
  6. }
  7. }
  8. abstract class Einkaufsposten(){
  9. private String bezeichnung;
  10. private long anzahl;
  11. private double nettoEinzelPreis;
  12. Einkaufsposten();
  13. public void setBezeichnung(String bezeichnung){
  14. this.bezeichnung = bezeichnung;
  15. }
  16. public String getBezeichnung(){
  17. return bezeichnung;
  18. }
  19. public void setAnzahl(long anzahl){
  20. this.anzahl = anzahl;
  21. }
  22. public long getAnzahl(){
  23. return anzahl;
  24. }
  25. public void setNettoEinzelPreis(double nettoEinzelPreis){
  26. this.nettoEinzelpreis = nettoEinzelPreis;
  27. }
  28. public double getNettoEinzelPreis(){
  29. return nettoEinzelPreis;
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement