Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package br.ufc.mandacaru5.dto;
- public class ProductDTO {
- private String name;
- private double price;
- public String getName() {
- return name;
- }
- public void setName(String name) {
- this.name = name;
- }
- public double getPrice() {
- return price;
- }
- public void setPrice(double price) {
- this.price = price;
- }
- public ProductDTO(String name, double price) {
- super();
- this.name = name;
- this.price = price;
- }
- public ProductDTO() {
- super();
- }
- @Override
- public String toString() {
- return "ProductDTO [name=" + name + ", price=" + price + "]";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement