public class artistSearchOop {
public abstract class ArtistTable implements Interface1{
int rowSum;
int colSum[];
@Override
public void salesSummary(){
int artistSales [][] = {
{900000,800000,500000},
{700000,500000,500000}
};
String[] artistNames = {
"Master KG",
"DJ B Coffee"
};
colSum[0] = artistSales [0][0]
+ artistSales [1][0];
colSum[1] = artistSales [0][1]
+ artistSales [1][1];
}
}
public interface Interface1 {
public void salesSummary();
}
public static void main(String[] args) {
Interface1 interface1 = new ArtistTable();
interface1.salesSummary();
}
I keep getting the error "non static variable this cannot be referenced from a static context. On the 3rd last line - 'Interface1 interface1 = new ArtistTable();'