Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.example.demo.model;
- public class Curso {
- private Integer id;
- private String nome;
- private String duracao;
- public Curso(Integer id, String nome, String duracao) {
- this.id = id;
- this.nome = nome;
- this.duracao = duracao;
- }
- public Integer getId() {
- return id;
- }
- public void setId(Integer id) {
- this.id = id;
- }
- public String getNome() {
- return nome;
- }
- public void setNome(String nome) {
- this.nome = nome;
- }
- public String getDuracao() {
- return duracao;
- }
- public void setDuracao(String duracao) {
- this.duracao = duracao;
- }
- @Override
- public String toString() {
- return "Curso [id=" + id + ", nome=" + nome + ", duracao=" + duracao + "]";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement