Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 351 Bytes

Task-6.md

File metadata and controls

14 lines (10 loc) · 351 Bytes

Practical Two, Task Six

Activity

An Employee Class

Create a class called employee. This class should have a name and a salary.

  • You will need a constructor with two arguements
  • You will also need the following methods
    • getName
    • getSalary
    • raiseSalary
  • Test this class by creating multiple employees with many salaries