Skip to content

Java project for Object Orientation class, University of Brasilia.

Notifications You must be signed in to change notification settings

LucasBergholz/TrabalhoFinalOO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Trabalho Final OO

This repository contains the final project made for the Object Orientation class from Universidade de Brasília (UnB).

What it does

With the porpuse of training my Object Orientation skills, it was developed a software, made in Java, that simulates the Brazilian National Football League, or, the Brasileirão. The simulation happens by registering matches using the program, where the user chooses 2 teams, the stadium, which round of the championship is this match from and the score of the match with the respective goal scorers. The minimum requirement for this project was to have 2 CRUD's implemented (Create, Read, Update and Delete), which in the case my project was "Partida" (Match) and "Jogador" (Player). Some of the classes made in this code are:

  • Pessoa: abstract class that is a parent class to "Jogador" (Player) and "Tecnico" (Coach), which provides key atributes such as "nome" (name) and "time" (team);
  • Partida (match): class that represents all the matches stored. In the software, its possible to create, delete or update a match. It has key atributes such as "jogadorCasa" (home player) and jogadorFora (away player) which represent who scored the goals of the match;
  • Time (team): class that represents all the teams available. For this project, there are 20 teams, which cannot be updated or deleted, because they represent the 20 teams that played de 2022 edition of the Brasileirão. They have stored in them all the players of the team (that are registered in the program).

To see the remaining classes of this project, click here.

User Interface

As this project was focused more on the "back-end" development, the front-end of the project was made using java Swing, which is a widget toolkit GUI to use combined with Java. It was used JFrames and JPanels to build the screens of the software.

Testing

All the CRUD's developed in this project were tested using Unit Testing, with the JUnit framework.