Hi everybody,
This is my task.I try to solve this problem but I couldnt understand nothing about print out part.
//Write a main method which creates a new property object with id 0, price 550000, area 2100 and availability true.
Print out its area in meters squared and then display the string form of the property object.//
This my working.What is wrong in this code ?
public class Property {
private double id;
private double price;
private double area;
private boolean availability;
public void propertyAttributes()
{
System.out.println("id,price,area,availability"+id +price+area+availability);
}
public Property ()
{
id=0;
price=550000;
area=2100;
availability=true;
}
public static void main(String[]args)
{
Property house=new Property();
house.propertyAttributes();
}
}