Advertisement
zserrbo

Termekek.java

Apr 25th, 2012
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. /*
  2. * To change this template, choose Tools | Templates
  3. * and open the template in the editor.
  4. */
  5. package zh3;
  6.  
  7. /**
  8. *
  9. * @author Zsolti
  10. */
  11. public class Termekek {
  12. private String nev;
  13. private int ar;
  14.  
  15. public Termekek(String nev, int ar) {
  16. this.nev = nev;
  17. this.ar = ar;
  18.  
  19. }
  20.  
  21. public String getNev() {
  22. return nev;
  23. }
  24.  
  25. public int getAr() {
  26. return ar;
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement