From d3364403008fa53ae8d342f1351ceb449e69f4f5 Mon Sep 17 00:00:00 2001
From: TiagoRG <35657250+TiagoRG@users.noreply.github.com>
Date: Tue, 28 Mar 2023 19:03:35 +0100
Subject: [PATCH] [POO] refactored aula06 to split between packages
---
1ano/2semestre/poo/src/aula06/README.md | 10 +++++-----
1ano/2semestre/poo/src/aula06/ex1/Bolser.java | 2 +-
1ano/2semestre/poo/src/aula06/ex1/Person.java | 2 +-
1ano/2semestre/poo/src/aula06/ex1/PersonTest.java | 2 +-
1ano/2semestre/poo/src/aula06/ex1/Professor.java | 2 +-
1ano/2semestre/poo/src/aula06/ex1/Student.java | 2 +-
1ano/2semestre/poo/src/aula06/ex2/Contact.java | 4 +++-
1ano/2semestre/poo/src/aula06/ex2/ContactList.java | 3 ++-
1ano/2semestre/poo/src/aula06/ex3/Vector.java | 2 +-
1ano/2semestre/poo/src/aula06/ex3/VectorTest.java | 2 +-
10 files changed, 17 insertions(+), 14 deletions(-)
diff --git a/1ano/2semestre/poo/src/aula06/README.md b/1ano/2semestre/poo/src/aula06/README.md
index f295632..ce22eae 100755
--- a/1ano/2semestre/poo/src/aula06/README.md
+++ b/1ano/2semestre/poo/src/aula06/README.md
@@ -6,11 +6,11 @@
* [Slides](https://github.com/TiagoRG/uaveiro-leci/tree/master/1ano/2semestre/poo/slides/POO_04_Herança.pdf)
### Exercise List
-| Exercise Number | Files Name |
-|-----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
-| 1 | [PersonTest.java](https://github.com/TiagoRG/uaveiro-leci/blob/master/1ano/2semestre/poo/src/aula06/PersonTest.java)
[Person.java](https://github.com/TiagoRG/uaveiro-leci/blob/master/1ano/2semestre/poo/src/aula06/Person.java)
[Student.java](https://github.com/TiagoRG/uaveiro-leci/blob/master/1ano/2semestre/poo/src/aula06/Student.java)
[Professor.java](https://github.com/TiagoRG/uaveiro-leci/blob/master/1ano/2semestre/poo/src/aula06/Professor.java)
[Bolser.java](https://github.com/TiagoRG/uaveiro-leci/blob/master/1ano/2semestre/poo/src/aula06/Bolser.java) |
-| 2 | [Contact.java](https://github.com/TiagoRG/uaveiro-leci/blob/master/1ano/2semestre/poo/src/aula06/Contact.java)
[ContactList.java](https://github.com/TiagoRG/uaveiro-leci/blob/master/1ano/2semestre/poo/src/aula06/ContactList.java) |
-| 3 | [Vector.java](https://github.com/TiagoRG/uaveiro-leci/blob/master/1ano/2semestre/poo/src/aula06/Vector.java)
[VectorTest.java](https://github.com/TiagoRG/uaveiro-leci/blob/master/1ano/2semestre/poo/src/aula06/VectorTest.java) |
+| Exercise Number | Files Name |
+|-----------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| 1 | [PersonTest.java](https://github.com/TiagoRG/uaveiro-leci/blob/master/1ano/2semestre/poo/src/aula06/ex1/PersonTest.java)
[Person.java](https://github.com/TiagoRG/uaveiro-leci/blob/master/1ano/2semestre/poo/src/aula06/ex1/Person.java)
[Student.java](https://github.com/TiagoRG/uaveiro-leci/blob/master/1ano/2semestre/poo/src/aula06/ex1/Student.java)
[Professor.java](https://github.com/TiagoRG/uaveiro-leci/blob/master/1ano/2semestre/poo/src/aula06/ex1/Professor.java)
[Bolser.java](https://github.com/TiagoRG/uaveiro-leci/blob/master/1ano/2semestre/poo/src/aula06/ex1/Bolser.java) |
+| 2 | [Contact.java](https://github.com/TiagoRG/uaveiro-leci/blob/master/1ano/2semestre/poo/src/aula06/ex2/Contact.java)
[ContactList.java](https://github.com/TiagoRG/uaveiro-leci/blob/master/1ano/2semestre/poo/src/aula06/ex2/ContactList.java) |
+| 3 | [Vector.java](https://github.com/TiagoRG/uaveiro-leci/blob/master/1ano/2semestre/poo/src/aula06/ex3/Vector.java)
[VectorTest.java](https://github.com/TiagoRG/uaveiro-leci/blob/master/1ano/2semestre/poo/src/aula06/ex3/VectorTest.java) |
---
*Pode conter erros, caso encontre algum, crie um* [*ticket*](https://github.com/TiagoRG/uaveiro-leci/issues/new)
diff --git a/1ano/2semestre/poo/src/aula06/ex1/Bolser.java b/1ano/2semestre/poo/src/aula06/ex1/Bolser.java
index 77a08e4..721220e 100644
--- a/1ano/2semestre/poo/src/aula06/ex1/Bolser.java
+++ b/1ano/2semestre/poo/src/aula06/ex1/Bolser.java
@@ -1,4 +1,4 @@
-package aula06;
+package aula06.ex1;
import utils.DateYMD;
diff --git a/1ano/2semestre/poo/src/aula06/ex1/Person.java b/1ano/2semestre/poo/src/aula06/ex1/Person.java
index 4744bad..c1b5386 100644
--- a/1ano/2semestre/poo/src/aula06/ex1/Person.java
+++ b/1ano/2semestre/poo/src/aula06/ex1/Person.java
@@ -1,4 +1,4 @@
-package aula06;
+package aula06.ex1;
import utils.DateYMD;
diff --git a/1ano/2semestre/poo/src/aula06/ex1/PersonTest.java b/1ano/2semestre/poo/src/aula06/ex1/PersonTest.java
index 423cf59..f67c561 100644
--- a/1ano/2semestre/poo/src/aula06/ex1/PersonTest.java
+++ b/1ano/2semestre/poo/src/aula06/ex1/PersonTest.java
@@ -1,4 +1,4 @@
-package aula06;
+package aula06.ex1;
import java.util.Scanner;
import utils.DateYMD;
diff --git a/1ano/2semestre/poo/src/aula06/ex1/Professor.java b/1ano/2semestre/poo/src/aula06/ex1/Professor.java
index 00e59c1..7f1bfd3 100644
--- a/1ano/2semestre/poo/src/aula06/ex1/Professor.java
+++ b/1ano/2semestre/poo/src/aula06/ex1/Professor.java
@@ -1,4 +1,4 @@
-package aula06;
+package aula06.ex1;
import utils.DateYMD;
diff --git a/1ano/2semestre/poo/src/aula06/ex1/Student.java b/1ano/2semestre/poo/src/aula06/ex1/Student.java
index 458d990..31c0d95 100644
--- a/1ano/2semestre/poo/src/aula06/ex1/Student.java
+++ b/1ano/2semestre/poo/src/aula06/ex1/Student.java
@@ -1,4 +1,4 @@
-package aula06;
+package aula06.ex1;
import utils.DateYMD;
import java.time.LocalDate;
diff --git a/1ano/2semestre/poo/src/aula06/ex2/Contact.java b/1ano/2semestre/poo/src/aula06/ex2/Contact.java
index fa2f8f4..8737fff 100644
--- a/1ano/2semestre/poo/src/aula06/ex2/Contact.java
+++ b/1ano/2semestre/poo/src/aula06/ex2/Contact.java
@@ -1,4 +1,6 @@
-package aula06;
+package aula06.ex2;
+
+import aula06.ex1.Person;
public class Contact {
private final int id;
diff --git a/1ano/2semestre/poo/src/aula06/ex2/ContactList.java b/1ano/2semestre/poo/src/aula06/ex2/ContactList.java
index ba92697..2646ede 100644
--- a/1ano/2semestre/poo/src/aula06/ex2/ContactList.java
+++ b/1ano/2semestre/poo/src/aula06/ex2/ContactList.java
@@ -1,5 +1,6 @@
-package aula06;
+package aula06.ex2;
+import aula06.ex1.Person;
import utils.DateYMD;
import java.util.Scanner;
diff --git a/1ano/2semestre/poo/src/aula06/ex3/Vector.java b/1ano/2semestre/poo/src/aula06/ex3/Vector.java
index 7e151dd..f50f506 100644
--- a/1ano/2semestre/poo/src/aula06/ex3/Vector.java
+++ b/1ano/2semestre/poo/src/aula06/ex3/Vector.java
@@ -1,4 +1,4 @@
-package aula06;
+package aula06.ex3;
public class Vector {
private int[] vector;
diff --git a/1ano/2semestre/poo/src/aula06/ex3/VectorTest.java b/1ano/2semestre/poo/src/aula06/ex3/VectorTest.java
index 1259028..2fd895c 100644
--- a/1ano/2semestre/poo/src/aula06/ex3/VectorTest.java
+++ b/1ano/2semestre/poo/src/aula06/ex3/VectorTest.java
@@ -1,4 +1,4 @@
-package aula06;
+package aula06.ex3;
public class VectorTest {