Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adicione um novo curso #55

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified out/production/desafio-poo-dio/Main.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
7 changes: 7 additions & 0 deletions src/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

public class Main {
public static void main(String[] args) {

Curso curso1 = new Curso();
curso1.setTitulo("curso java");
curso1.setDescricao("descrição curso java");
Expand All @@ -17,6 +18,11 @@ public static void main(String[] args) {
curso2.setDescricao("descrição curso js");
curso2.setCargaHoraria(4);

Curso curso3 = new Curso(); // novo curso
curso3.setTitulo("curso python");
curso3.setDescricao("descrição curso python");
curso3.setCargaHoraria(6);

Mentoria mentoria = new Mentoria();
mentoria.setTitulo("mentoria de java");
mentoria.setDescricao("descrição mentoria java");
Expand All @@ -31,6 +37,7 @@ public static void main(String[] args) {
bootcamp.setDescricao("Descrição Bootcamp Java Developer");
bootcamp.getConteudos().add(curso1);
bootcamp.getConteudos().add(curso2);
bootcamp.getConteudos().add(curso3);
bootcamp.getConteudos().add(mentoria);

Dev devCamila = new Dev();
Expand Down
7 changes: 7 additions & 0 deletions src/br/com/dio/desafio/dominio/Bootcamp.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ public class Bootcamp {
private Set<Dev> devsInscritos = new HashSet<>();
private Set<Conteudo> conteudos = new LinkedHashSet<>();

public Bootcamp(String nome, String descricao) {
}

public Bootcamp() {

}


public String getNome() {
return nome;
Expand Down
7 changes: 7 additions & 0 deletions src/br/com/dio/desafio/dominio/Conteudo.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ public abstract class Conteudo {
private String titulo;
private String descricao;

public Conteudo(String titulo, String descricao) {
}

public Conteudo() {

}

public abstract double calcularXp();

public String getTitulo() {
Expand Down
1 change: 1 addition & 0 deletions src/br/com/dio/desafio/dominio/Curso.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ public double calcularXp() {
}

public Curso() {
super();
}


Expand Down