OverRiding Help
- by user445714
Few questions on over riding.
I am interiting a method openRead from another class, the method is to be overridden so that the scanner class uses the provided delimiter pattern, which is referenced. I need to make use of the scanner class useDelmiter method
method from another class
[code]
public boolean openRead() throws FileNotFoundException
{
sc = new Scanner(new File(fileName));
if (fileName != null)
{
return true;
}
else
{
return false;
}
}
[/code]
delimiter
[code]
protected final String DELIMITERS = "[\s[^'a-zA-Z]]";
[/code]
I'm at a loss to how i over ride this using the constant delimiter.