Java Sample Code

Java Sample Code import java.io.*; public class Employee{ String name; int age; String designation; double salary; public Employee(String name){ this.name = name; } public void empAge(int empAge){ age = empAge; } public void empDesignation(String empDesig){ designation = empDesig; } public void empSalary(double empSalary){ salary = empSalary; } public void printEmployee(){ System.out.println("Name:"+ name ); System.out.println("Age:" + … Continue reading Java Sample Code