Advertisement
darius90

14. Java

Feb 6th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.43 KB | None | 0 0
  1. package javaapplication3;
  2.  
  3. import java.io.*; //Importálás
  4.  
  5.  
  6.  
  7.  
  8. public class Tanulo {
  9.     //Attributumok, metódusok, konstruktorok helye
  10. private String name;
  11. private byte id;
  12. public Tanulo (String nev,byte id){
  13.     this.name = név; //kontruktorok
  14.     this.id = id;
  15.    
  16. public String getname(){
  17.      return name ;}
  18.  
  19. public void setname (Strin név){
  20. this.name=név;
  21.  
  22. public static void main(String args[]){
  23. }
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement