Question: Please convert the following java code to Golang language, Thank you. public class Executive extends Employee { private double bonus; //------ // Sets up an

Please convert the following java code to Golang language, Thank you.

Please convert the following java code to Golang language, Thank you. public

public class Executive extends Employee { private double bonus; //------ // Sets up an executive with the specified information. //------ public Executive (String eName, String eAddress, String ePhone, String socSecNumber, double rate) { super (eName, Address, phone, socSec Number, rate); bonus 0; // bonus has yet to be awarded } // - // Awards the specified bonus to this executive. //------ public void awardBonus (double execBonus) { bonus = execBonus; } //--- // Computes and returns the pay for an executive, which is the // regular employee payment plus a one-time bonus. //---- public double pay() { double payment = super.pay ( + bonus; bonus = 0; return payment; 12D } public class Executive extends Employee { private double bonus; //------ // Sets up an executive with the specified information. //------ public Executive (String eName, String eAddress, String ePhone, String socSecNumber, double rate) { super (eName, Address, phone, socSec Number, rate); bonus 0; // bonus has yet to be awarded } // - // Awards the specified bonus to this executive. //------ public void awardBonus (double execBonus) { bonus = execBonus; } //--- // Computes and returns the pay for an executive, which is the // regular employee payment plus a one-time bonus. //---- public double pay() { double payment = super.pay ( + bonus; bonus = 0; return payment; 12D }

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!