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