SHARE
TWEET

Untitled

advictoriam Feb 1st, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2.    A salary to which a bonus can be applied.
  3. */
  4. public class Salary
  5. {
  6.    private double salary;
  7.    public Salary(int aSalary)
  8.    {
  9.       salary = (double)aSalary;
  10.    }
  11.    public void applyBonus(double bonus)
  12.    {
  13.       salary *= 1 + bonus;
  14.    }
  15.    public double getValue(){return salary;}
  16. }
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