Question: public class Salary { private static int hour; private static int day; private static int Offdays; public int getHour() { return hour; } public void

public class Salary { private static int hour; private static int day; private static int Offdays;

public int getHour() { return hour; }

public void setHour(int hour) { this.hour = hour; }

public int getDay() { return day; }

public void setDay(int day) { this.day = day; }

public int getOffdays() { return Offdays; }

public void setOffdays(int Offdays) { this.Offdays = Offdays; } public int Calculatehourly() { int hourlyAmount=32; int totalAmount=this.hour*hourlyAmount; return totalAmount; } public int CalculateDaily() { int dailyAmount=180; int totalAmount=this.day*dailyAmount; return totalAmount; } public int CalculatePermanent() { int perminentAmount=4200; return perminentAmount; } }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!