Best writers. Best papers. Let professionals take care of your academic papers

Order a similar paper and get 15% discount on your first order with us
Use the following coupon "FIRST15"
ORDER NOW

I need help adding and understanding an instance variable and method

I need help adding and understanding an instance variable and method

to this program. I have been doing research and readings but still do not understand how a variable and method can be linked to an object.

public class number
{
static int a=1;
static void number()
{
System.out.println(“value of a is “+a);
}
public static void main(String[] args)
{
System.out.println(“inside static method”);
number.number();
}
}

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"