Skip to content

A payroll project in Java using Design patterns and Object oriented programming

Notifications You must be signed in to change notification settings

MatheusArtur/payroll-Java-OOP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Payroll OOP

Included Patterns

Extract Method

Implemented in Employee Class, removing all code redundancy. It no longer has repeated code fragments.

Replace Data Value With Object

Implemented in Employee, the right usage of 3 classes; Syndie, Agenda and Payment and it’s attributes. It no longer requires a String (data value) to represent them.

  • Before (code smell) ./img/codeSmells2.png
  • After ./img/nice2.png

Extract Class

The once atrocious “runPayroll” method used in the App class, has been extracted to a proper class and it’s functionalities. The now Payroll package.

  • Before (code smell) ./img/codeSmells.png
  • After ./img/nice.png

How to use

main function is located at ./payroll/src/main/java/app/App.java. Once the program is running just read and follow the instructions.

UML

old version. Corrected relations, main and included Interface ./uml/payroll-2.1.png

Older versions

Check the progress-evolution Click here to check the First Version!

About

A payroll project in Java using Design patterns and Object oriented programming

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages