Note: for all string data members use get line function for getting values. Create a class Employee with following Data Members with private access modifier. Employee Name. Employee age. Employee...



Note: for all string data members use get line function for getting values.



  1. Create a class Employee with following Data Members with private access modifier.



  • Employee Name.

  • Employee age.

  • Employee salary.

  • Employee Address.



  1. Create getter and setter methods for each data member.

  2. Employee age should be greater than 18.

  3. Employee salary should be greater than 15000.

  4. Show all the details of 3 employee to console (Screen).



Jun 03, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here