Write a java program to read and print the details of five Employees Define a class named Employee Declare instance variables Emp_Name (String), Emp_ID (int), Emp_Salary (float) Define a method named...


Write a java program toread andprint the details offive Employees



  • Define a class namedEmployee

    • Declare instance variablesEmp_Name (String), Emp_ID (int), Emp_Salary (float)

    • Define a method namedreadDetailsto read the above employee details

    • Define a method namedprintDetails to print the employee details



  • Define a class formain
    method

    • Create five objects for five employees.

    • InvokereadDetails method of Emlopee class using five created objects

    • InvokeprintDetails method of Emlopee class using five created objects





Jun 03, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here