Posted by: Robert Frost September 27, 2004
Java problem-help needed
Login in to Rate this Post:     0       ?        
Alright here's my problem: package questions.c1; interface RiceCereal { public void snap(); public void crackle(); public void pop(); } public abstract class Krispies implements RiceCereal { public void snap() { System.out.println( "Snap!" ); } public void crackle() { System.out.println( "Crackle!" ); } public static void main( String[] args) { Krispies k = new Krispies(); k.snap(); } } The problem I get from compiling this code is that: "Krispies is abstract and it cannot be instantiated" showing me the code "new Krispies" as the culprit. I am relatively new to Java and I was debugging a problem, now I am stuck with this, it debugged my whole brain. Searched through the net, and could not understand the solution from sun.java.com. My sajha friends, I need help.
Read Full Discussion Thread for this article