-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInstructions.txt
More file actions
36 lines (29 loc) · 1.09 KB
/
Instructions.txt
File metadata and controls
36 lines (29 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
ATIVIDADE 01
- Crie uma pasta chamada ATVDS01;
- Dentro dessa pasta crie 2 classes JAVA, Main.java e Produto.java;
- Na classe Produto:
- Definir 5 atributos para representar um Produto;
- Defina no mínimo 3 métodos construtores;
- Faça o Encapsulamento de todos atributos da classe;
- Desenvolva métodos de funcionalidade que achar necessário.
* Na classe Main apresente um menu com as opções:
- Criar um produto;
- Alerar dados de um produto
- Excluir um produto;
- Listar todos os produtos;
- Sair.
!! O programa somente encerará ao escolher a opção "Sair".
Activity 01
- Create a folder named ATVDS01;
- Inside this folder create 2 class Java, Main.java & Produto.java;
- In the Product class:
- Define at leats 3 constructors methods;
- Do the Encapsulation for all the attributes of the class;
- Develop methods of funcionility if necessary;
* In the Main class, show the menu with the options:
- Create a product;
- Change data of one product;
- Remove one product;
- List all the products;
- Exit;
The program will only leave if the user select the option "Exit";