SHARE
TWEET

empleadoBaseMasComisionII

a guest May 22nd, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2.  *
  3.  */
  4. package pART;
  5.  
  6. /**
  7.  * @author dan_d_000
  8.  *
  9.  */
  10. public class empleadoBaseMasComisionII extends empleadosPorComision{
  11.    
  12.     protected String nName;
  13.     protected String dadN;
  14.     protected String insNum;
  15.     protected double bruteSales;
  16.     protected double comisTarif;
  17.     protected double baseSalary;
  18.  
  19.     public empleadoBaseMasComisionII(String name, String dadn, String momn, String insnum, double bs, double tariffs) {
  20.         super(name, dadn, momn, insnum, bs, tariffs);
  21.     }
  22.    
  23.     public void setName (String N) {
  24.         nName=N;
  25.     }
  26.     public String getName () {
  27.         return nName;
  28.     }
  29.     public void setDadN (String N) {
  30.         dadN=N;
  31.     }
  32.     public String getDadN () {
  33.         return dadN;
  34.     }
  35.     public void setInsNum (String N) {
  36.         insNum=N;
  37.     }
  38.     public String getInsNum () {
  39.         return insNum;
  40.     }public void setBruteSales (double N) {
  41.         bruteSales=N;
  42.     }
  43.     public double getBruteSales () {
  44.         return bruteSales;
  45.     }public void setComisTarif (double N) {
  46.         comisTarif=N;
  47.     }
  48.     public double getComisTarif () {
  49.         return comisTarif;
  50.     }
  51.     public void setBaseSalary (double N) {
  52.         baseSalary=N;
  53.     }
  54.     public double getBaseSalary () {
  55.         return baseSalary;
  56.     }
  57.    
  58.     public double profits () {
  59.         return comisTarif*bruteSales;
  60.     }
  61.    
  62.     public String toString() {
  63.         return String.format("empleado por comisiĆ³n ",nName,dadN," Numero de seguro ",insNum," ventas brutas ",bruteSales," tarifa por comision ",comisTarif);
  64.     }
  65.  
  66. }
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