Write a class called AutoDealer. Each dealer will have a name, number of employees, annual gross income,
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a class called AutoDealer. Each dealer will have a name, number of employees, annual gross income, annual total salary, and annual fixed expenses as instance variables. Except for the name, all the other variables are private. Include get() and set() methods. Also include a netIncome() method which will calculate and return the net income ( = gross salary – total salary – fixed expense). Also include a toString() method that returns the values of instance variables.
Related Book For
Posted Date: