Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Student extends Person
- {
- public int [] matrikelnummer_ref;
- public int [] studienfach;
- private final int STANI = 5;
- public int laengeStudent;
- //constructor Person
- public Student (int laengeStudent)
- {
- if(laengeStudent > 0)
- {
- matrikelnummer_ref= new int[laengeStudent];
- studienfach_ref = new int[laengeStudent];
- }
- else
- {
- matrikelnummer_ref = new int[STANIWERT];
- studeinfach_ref = new int[STANIWERT];
- }
- }
- //endconstructor
- }//endclass
Add Comment
Please, Sign In to add comment