Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Building {
- int height;
- double area;
- String address;
- public Building(int height, double area, String address) {
- super();
- this.height = height;
- this.area = area;
- this.address = address;
- }
- public static void printBuilding(Building b1) {
- System.out.println(b1);
- }
- public int getHeight() {
- return height;
- }
- public void setHeight(int height) {
- this.height = height;
- }
- public double getArea() {
- return area;
- }
- public void setArea(double area) {
- this.area = area;
- }
- public String getAddress() {
- return address;
- }
- public void setAddress(String address) {
- this.address = address;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement