Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Student {
- String nazwisko;
- String imie;
- int dataUr;
- int nrAlbumu;
- int rokStudiow;
- double srednia;
- public String getNazwisko() {
- return nazwisko;
- }
- public void setNazwisko(String nazwisko) {
- this.nazwisko = nazwisko;
- }
- public String getImie() {
- return imie;
- }
- public void setImie(String imie) {
- this.imie = imie;
- }
- public int getDataUr() {
- return dataUr;
- }
- public void setDataUr(int dataUr) {
- this.dataUr = dataUr;
- }
- public int getNrAlbumu() {
- return nrAlbumu;
- }
- public void setNrAlbumu(int nrAlbumu) {
- this.nrAlbumu = nrAlbumu;
- }
- public int getRokStudiow() {
- return rokStudiow;
- }
- public void setRokStudiow(int rokStudiow) {
- this.rokStudiow = rokStudiow;
- }
- public double getSrednia() {
- return srednia;
- }
- public void setSrednia(double srednia) {
- this.srednia = srednia;
- }
- public Student(String nazwisko, String imie, int dataUr, int nrAlbumu, int rokStudiow, double srednia) {
- super();
- this.nazwisko = nazwisko;
- this.imie = imie;
- this.dataUr = dataUr;
- this.nrAlbumu = nrAlbumu;
- this.rokStudiow = rokStudiow;
- this.srednia = srednia;
- }
- @Override
- public String toString() {
- return "Student [nazwisko=" + nazwisko + ", imie=" + imie + ", dataUr=" + dataUr + ", nrAlbumu=" + nrAlbumu
- + ", rokStudiow=" + rokStudiow + ", srednia=" + srednia + "]";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement