Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
|
Apache Tomcat General discussion of the Apache Tomcat servlet container. For discussions specific to the Professional Apache Tomcat book, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Apache Tomcat section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 19th, 2004, 02:08 AM
Registered User
 
Join Date: Feb 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Cannot implement or extend

Hello,

I have an interface callback
package test;

interface callback
{
    void callback1(int param);
}

i m implementing this interface
package test;

class client implements callback
{
public void callback1(int p)
{
System.out.println("callback called"+p);
}
}

But when i try to compile this code it says :
Cannot resolve symbol
symbol: class callback
location: class test.client
class client implements callback
1 error

Hope anyone can solve this for me.
I have set the path n classpath .





 
Old June 16th, 2004, 06:29 AM
Authorized User
 
Join Date: Jun 2004
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi,
try importing interface.

import test.*;
class client implements callback
{
public void callback1(int p)
{
System.out.println("callback called"+p);
}
}

Prasanth.C

prasanth.c





Similar Threads
Thread Thread Starter Forum Replies Last Post
how to extend classes hafizmuhammadmushtaq Java Basics 1 April 8th, 2008 02:45 AM
how to extend the String class hafizmuhammadmushtaq Java Basics 2 April 7th, 2008 06:21 AM
Extend a border nloding CSS Cascading Style Sheets 1 September 1st, 2006 08:43 PM
Extend Autosuggest control [email protected] BOOK: Professional Ajax ISBN: 978-0-471-77778-6 0 May 27th, 2006 03:08 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.