Guest User

Untitled

a guest
Jul 16th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. public class Student extends Person
  2.  
  3. {
  4. public int [] matrikelnummer_ref;
  5. public int [] studienfach;
  6. private final int STANI = 5;
  7.  
  8. public int laengeStudent;
  9.  
  10.  
  11.  
  12.  
  13. //constructor Person
  14.  
  15. public Student (int laengeStudent)
  16. {
  17. if(laengeStudent > 0)
  18. {
  19. matrikelnummer_ref= new int[laengeStudent];
  20. studienfach_ref = new int[laengeStudent];
  21. }
  22. else
  23. {
  24. matrikelnummer_ref = new int[STANIWERT];
  25. studeinfach_ref = new int[STANIWERT];
  26. }
  27. }
  28.  
  29. //endconstructor
  30.  
  31.  
  32. }//endclass
Add Comment
Please, Sign In to add comment