Results 1 to 3 of 3
Thread: Unable to find symbol: CallBack
- 03-28-2012, 12:21 AM #1
Member
- Join Date
- Mar 2012
- Posts
- 5
- Rep Power
- 0
Unable to find symbol: CallBack
I am new to Java. I am getting the error message "unable to find symbol: CallBack" when I try to run this code. I am being introduced to "interfaces".
class Client implements Callback {
// implements Callback's interface
public void Callback( int p ) {
System.out.println( "Callback called with " + p );
}
void nonIfaceMeth() {
System.out.println( "Classes that implement interfaces " +
"may also define other members, too" );
}
}
class TestIface {
public static void main( String args[] ) {
Callback c = new Client();
c.callback( 42 );
}
}
- 03-28-2012, 01:32 AM #2
Moderator
- Join Date
- Jul 2010
- Location
- California
- Posts
- 1,605
- Rep Power
- 5
Re: Unable to find symbol: CallBack
What is callback? Did you import it?
- 03-28-2012, 01:56 AM #3
Member
- Join Date
- Mar 2012
- Posts
- 5
- Rep Power
- 0
Similar Threads
-
Cannot find symbol
By Eleeist in forum New To JavaReplies: 5Last Post: 01-22-2012, 08:36 PM -
Unable to find plug-in
By tommo in forum EclipseReplies: 0Last Post: 10-18-2011, 03:47 AM -
unable to find RCP Hello Example
By thano in forum EclipseReplies: 0Last Post: 06-02-2011, 01:13 PM -
cannot find symbol symbol :constructor Error. Please help! =(
By KalEl in forum New To JavaReplies: 9Last Post: 10-18-2008, 08:26 PM -
cannot find symbol symbol : class Item location: package platypos.services.order
By officialhopsof in forum New To JavaReplies: 3Last Post: 05-01-2008, 08:30 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks