Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.yannickxd2.onlineShop;
- public class Product {
- private String name;
- private double price;
- public Product(String name, double price) {
- super();
- this.name = name;
- this.price = price;
- }
- /**
- * @return the name
- */
- public String getName() {
- return name;
- }
- /**
- * @return the price
- */
- public double getPrice() {
- return price;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement