SHARE
TWEET

empleadoBaseMasComisionIII

a guest May 22nd, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package pART;
  2.  
  3. public class empleadoBaseMasComisionIII extends empleadoBaseMasComisionII {
  4.  
  5.     private String nName;
  6.     private String dadN;
  7.     private String insNum;
  8.     private double bruteSales;
  9.     private double comisTarif;
  10.     private double baseSalary;
  11.     public empleadoBaseMasComisionIII(String name, String dadn, String momn, String insnum, double bs, double tariffs) {
  12.         super(name, dadn, momn, insnum, bs, tariffs);
  13.         // TODO Auto-generated constructor stub
  14.     }
  15.     public void setName (String N) {
  16.         nName=N;
  17.     }
  18.     public String getName () {
  19.         return nName;
  20.     }
  21.     public void setDadN (String N) {
  22.         dadN=N;
  23.     }
  24.     public String getDadN () {
  25.         return dadN;
  26.     }
  27.     public void setInsNum (String N) {
  28.         insNum=N;
  29.     }
  30.     public String getInsNum () {
  31.         return insNum;
  32.     }public void setBruteSales (double N) {
  33.         bruteSales=N;
  34.     }
  35.     public double getBruteSales () {
  36.         return bruteSales;
  37.     }public void setComisTarif (double N) {
  38.         comisTarif=N;
  39.     }
  40.     public double getComisTarif () {
  41.         return comisTarif;
  42.     }
  43.     public void setBaseSalary (double N) {
  44.         baseSalary=N;
  45.     }
  46.     public double getBaseSalary () {
  47.         return baseSalary;
  48.     }
  49.    
  50.     public double profits () {
  51.         return comisTarif*bruteSales;
  52.     }
  53.    
  54.     public String toString() {
  55.         return String.format("empleado por comisiĆ³n ",nName,dadN," Numero de seguro ",insNum," ventas brutas ",bruteSales," tarifa por comision ",comisTarif);
  56.     }
  57.  
  58. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top