Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java in General
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Java in General
Problem with Interface return type
Himal Chuli
Ranch Hand
Posts: 118
posted 21 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
hi folks,
i have follwoings:
interface TestInterface{ } class Test{ public TestInterface create(){ return someObject of TestInterface Type; } } compiling Test class gives me the following error: Test.java:cannot resolve symbol symbol : class TestInterface location: class Test public TestInterface create() ^ 1 error
can you please explain me what's wrong with this method that has a return type an interface.
thanks.
[ November 12, 2002: Message edited by: Himal Chuli ]
Himal
Cindy Glass
"The Hood"
Posts: 8521
posted 21 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Typing error:
inerface TestInterface{}
should be
interface TestInterface{}
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Checked exception and interface.
NullPointerException while using DI
q on interfaces
problem with implementing interface
Method-local Inner Class Q
More...