Rafael Vinicius
the crucified
- Joined
- Mar 11, 2021
- Messages
- 3
- Programming Experience
- Beginner
1 - In order to represent employees in a company, create a class called Employee that includes the following three information as attributes:
a first name,
a surname, and
a monthly salary.
all attributes must be public at this point.
2 - Create a constructor that initializes all the attributes of the class.
3 - Create a method that allows the Employee's first and last name to be returned together.
4 - Create a method that returns the Employee's salary.
5 - Create a method that allows a 10% increase over the Employee's salary.
6 - In the Program class of your project, create an instance of the Employee class.
7 - Print the name and surname of the employee created using the method you created.
8 - Invoke the method that increases the employee's salary.
9 - Print the employee's new salary using the method that returns the employee's salary.
a first name,
a surname, and
a monthly salary.
all attributes must be public at this point.
2 - Create a constructor that initializes all the attributes of the class.
3 - Create a method that allows the Employee's first and last name to be returned together.
4 - Create a method that returns the Employee's salary.
5 - Create a method that allows a 10% increase over the Employee's salary.
6 - In the Program class of your project, create an instance of the Employee class.
7 - Print the name and surname of the employee created using the method you created.
8 - Invoke the method that increases the employee's salary.
9 - Print the employee's new salary using the method that returns the employee's salary.