Advertisement
Guest User

Untitled

a guest
May 25th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.72 KB | None | 0 0
  1. package com.example.demo.model;
  2.  
  3. public class Curso {
  4.  
  5.     private Integer id;
  6.     private String nome;
  7.     private String duracao;
  8.  
  9.     public Curso(Integer id, String nome, String duracao) {
  10.         this.id = id;
  11.         this.nome = nome;
  12.         this.duracao = duracao;
  13.     }
  14.  
  15.     public Integer getId() {
  16.         return id;
  17.     }
  18.  
  19.     public void setId(Integer id) {
  20.         this.id = id;
  21.     }
  22.  
  23.     public String getNome() {
  24.         return nome;
  25.     }
  26.  
  27.     public void setNome(String nome) {
  28.         this.nome = nome;
  29.     }
  30.  
  31.     public String getDuracao() {
  32.         return duracao;
  33.     }
  34.  
  35.     public void setDuracao(String duracao) {
  36.         this.duracao = duracao;
  37.     }
  38.  
  39.     @Override
  40.     public String toString() {
  41.         return "Curso [id=" + id + ", nome=" + nome + ", duracao=" + duracao + "]";
  42.     }  
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement