Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Imot {
- private String name;
- private String address;
- private int number;
- private double price;
- public Imot (String name, String address, int number, double price) {
- this.setAddress(address);
- this.setName(name);
- this.setPrice(price);
- this.setNumber(number);
- }
- public String getName() {
- return name;
- }
- public void setName(String name) {
- this.name = name;
- }
- public String getAddress() {
- return address;
- }
- public void setAddress(String address) {
- this.address = address;
- }
- public int getNumber() {
- return number;
- }
- public void setNumber(int number) {
- this.number = number;
- }
- public double getPrice() {
- return price;
- }
- public void setPrice(double price) {
- this.price = price;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement