Advertisement
srga89

Untitled

Jan 30th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.68 KB | None | 0 0
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6. package radnik;
  7.  
  8. /**
  9.  *
  10.  * @author Srdjan
  11.  */
  12. public class Radnik {
  13.  
  14.     public String imeRadnika;
  15.     double radniSatCena, kolikoJeRadio;
  16.  
  17.     public Radnik(String imeRadnika, double radniSatCena, double kolikoJeRadio) {
  18.         this.imeRadnika = imeRadnika;
  19.         this.radniSatCena = radniSatCena;
  20.         this.kolikoJeRadio = kolikoJeRadio;
  21.     }
  22.     public Radnik() {
  23.        
  24.         double plata(){
  25.         return radniSatCena*kolikoJeRadio;}
  26.     }
  27.    
  28.            
  29.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement