Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package h;
- import java.util.ArrayList;
- public class House implements GetPrice{
- private String owner;
- private String adress;
- private double squareM;
- private double price;
- public House(String owner, String adress, double squareM, double price) {
- this.owner = owner;
- this.adress = adress;
- this.squareM = squareM;
- this.price = price;
- }
- public String getOwner() {
- return owner;
- }
- public void setOwner(String owner) {
- this.owner = owner;
- }
- public String getAdress() {
- return adress;
- }
- public void setAdress(String adress) {
- this.adress = adress;
- }
- public double getSquareM() {
- return squareM;
- }
- public void setSquareM(double squareM) {
- this.squareM = squareM;
- }
- public double getPrice() {
- return price;
- }
- public void setPrice(double price) {
- this.price = price;
- }
- @Override
- public GetPrice getMaxPrice(ArrayList<GetPrice> list) {
- return null;
- }
- @Override
- public void print() {
- System.out.println(owner+"\n"+adress+"\n"+squareM+"\n"+price);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement