Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package HW.OOP.SHOP;
- public class Telephone {
- private String model;
- private String color;
- private double price;
- public Telephone(String model, String color, double price) {
- this.model = model;
- this.color = color;
- this.price = price;
- }
- public String getModel() {
- return model;
- }
- public String getColor() {
- return color;
- }
- public double getPrice() {
- return price;
- }
- public void setModel(String model) {
- this.model = model;
- }
- public void setColor(String color) {
- this.color = color;
- }
- public void setPrice(double price) {
- this.price = price;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement