Create a Java program to manage employees in a small company.
Requirements:
1.
Create a class Employee with the following fields:
▪
String name
▪
int age
▪
double salary
2.
Add a constructor to initialize these fields and a method printDetails() to print employee information.
3.
In the main method:
▪
Create an array of 3 employees.
▪
Use a for loop to print the details of each employee.
اسم المستقل | Osama A. |
عدد الإعجابات | 0 |
عدد المشاهدات | 4 |
تاريخ الإضافة | |
تاريخ الإنجاز |