Advertisement
heysoul_sisypus

FullTimeEmployee

Jan 30th, 2023 (edited)
565
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.36 KB | None | 0 0
  1. package employee;
  2. import java.util.*;
  3. /**
  4.  *
  5.  * @author Ian
  6.  */
  7. public class FullTimeEmployee {
  8.  Scanner Scan = new Scanner(System.in);  
  9.  public double monthlySalary;
  10.  
  11. public void setMonthlySalary(){
  12.  System.out.print("Enter Salary: ");
  13.  monthlySalary = Scan.nextDouble();
  14. }
  15. public double getMonthlySalary(double monthlySalary){return monthlySalary;}
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement