Advertisement
andersonalmada2

Untitled

Aug 1st, 2022
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.59 KB | None | 0 0
  1. package br.ufc.mandacaru5.dto;
  2.  
  3. public class ProductDTO {
  4.    
  5.     private String name;
  6.     private double price;
  7.    
  8.     public String getName() {
  9.         return name;
  10.     }
  11.     public void setName(String name) {
  12.         this.name = name;
  13.     }
  14.     public double getPrice() {
  15.         return price;
  16.     }
  17.     public void setPrice(double price) {
  18.         this.price = price;
  19.     }
  20.     public ProductDTO(String name, double price) {
  21.         super();
  22.         this.name = name;
  23.         this.price = price;
  24.     }
  25.     public ProductDTO() {
  26.         super();
  27.     }
  28.     @Override
  29.     public String toString() {
  30.         return "ProductDTO [name=" + name + ", price=" + price + "]";
  31.     }
  32. }
  33.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement