Question #63979

correct the following code segment :
public interface looney
{
public abstract void add();

void compute()
{
system.out.println("\nthis is it");
}
}

Expert's answer

public interface Looney {

public abstract void add();

default void compute() {
System.out.println("\nthis is it");
}
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS