Advertisement
ridjis

Predmet

Mar 10th, 2015
486
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.50 KB | None | 0 0
  1. package cas3;
  2.  
  3. public class Predmet {
  4.     private int predmet_id;
  5.     private String naziv;
  6.    
  7.     public Predmet() {     
  8.     }
  9.    
  10.     public Predmet(int predmet_id, String naziv) {
  11.         this();
  12.         this.predmet_id = predmet_id;
  13.         this.naziv = naziv;
  14.     }
  15.    
  16.     public void setPredmet_id(int predmet_id) {
  17.         this.predmet_id = predmet_id;
  18.     }
  19.     public int getPredmet_id() {
  20.         return predmet_id;
  21.     }
  22.    
  23.     public void setNaziv(String naziv) {
  24.         this.naziv = naziv;
  25.     }
  26.     public String getNaziv() {
  27.         return naziv;
  28.     }  
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement