Facebook
From Tuğçe Arslantaş, 4 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 114
  1. public class Student extends Main{
  2.     public static void main(String[] args){
  3.    
  4.         int id;
  5.         String name;
  6.         String email;
  7.         String password;
  8.         String address;
  9.         int postleitzahl;
  10.         String nation;
  11.         int semester;
  12.         String studiengang;
  13.      
  14.        
  15.  
  16.         public Student(int id, String password){
  17.             this.id = id;
  18.             this.password = password;
  19.         }
  20.  
  21.    
  22.    
  23.  
  24.         public String getname(){
  25.             return this.name;
  26.         }
  27.    
  28.         public String getnation(){
  29.             return this.nation;
  30.         }
  31.         public int getsemester(){
  32.             return this.semester;
  33.         }
  34.         public int getid(){
  35.             return this.id;
  36.         }
  37.     }
  38. }
  39.  
  40.  
  41.  
  42.