Advertisement
Guest User

Untitled

a guest
Feb 25th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. public class Student {
  2.  
  3. String nazwisko;
  4. String imie;
  5. int dataUr;
  6. int nrAlbumu;
  7. int rokStudiow;
  8. double srednia;
  9. public String getNazwisko() {
  10. return nazwisko;
  11. }
  12. public void setNazwisko(String nazwisko) {
  13. this.nazwisko = nazwisko;
  14. }
  15. public String getImie() {
  16. return imie;
  17. }
  18. public void setImie(String imie) {
  19. this.imie = imie;
  20. }
  21. public int getDataUr() {
  22. return dataUr;
  23. }
  24. public void setDataUr(int dataUr) {
  25. this.dataUr = dataUr;
  26. }
  27. public int getNrAlbumu() {
  28. return nrAlbumu;
  29. }
  30. public void setNrAlbumu(int nrAlbumu) {
  31. this.nrAlbumu = nrAlbumu;
  32. }
  33. public int getRokStudiow() {
  34. return rokStudiow;
  35. }
  36. public void setRokStudiow(int rokStudiow) {
  37. this.rokStudiow = rokStudiow;
  38. }
  39. public double getSrednia() {
  40. return srednia;
  41. }
  42. public void setSrednia(double srednia) {
  43. this.srednia = srednia;
  44. }
  45.  
  46. public Student(String nazwisko, String imie, int dataUr, int nrAlbumu, int rokStudiow, double srednia) {
  47. super();
  48. this.nazwisko = nazwisko;
  49. this.imie = imie;
  50. this.dataUr = dataUr;
  51. this.nrAlbumu = nrAlbumu;
  52. this.rokStudiow = rokStudiow;
  53. this.srednia = srednia;
  54. }
  55. @Override
  56. public String toString() {
  57. return "Student [nazwisko=" + nazwisko + ", imie=" + imie + ", dataUr=" + dataUr + ", nrAlbumu=" + nrAlbumu
  58. + ", rokStudiow=" + rokStudiow + ", srednia=" + srednia + "]";
  59. }
  60.  
  61.  
  62.  
  63. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement