Hello!
I am defining an interface.
interface Parser{
void parseText(String buffer);
void parseInt(String buffer);
void parseFloat(String buffer);
}
Now the classes implementing this interface have to implement these methods. I want to keep the implementation of parseText(...) method as optional. The class implementing this interface have to implement parseInt(...) and parseFloat(...) but parseText(...) should be optional.
How this can be done?
Thanks a lot for yout time.
- Cheers