Q)i got one compile error 10::non-static variable this can not be refferenced from the static content
what to do now??
class Computer
{
void method()
{
System.out.println("this i objects");
}
public static void main(String[] args)
{
Laptop mtd = new Laptop();
Computer mtd1 = new Computer();
mtd.method();
mtd1.method();
}
class Laptop
{
void method()
{
System.out.println("using laptop method");
}
}
}