I have a strange problem i don’t know if i miss something. Here is my code
public interface Book{
}
public class MyBook implements Book
{
}
public static void main(String[] args)
{
Book b = new MyBook(); // compiler error: Type mismatch ....
}
Can somebody explains to me is this really a compiler error or just my eclipse is acting weird?
Thanks,
Sorry, there is another interface of exact same name that is in the imported statement that is causing the problem. Thanks.