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 method.
method from another class
public boolean openRead() throws FileNotFoundException
{
sc = new Scanner(new File(fileName));
if (fileName != null)
{
return true;
}
else
{
return false;
}
}
delimiter
protected final String DELIMITERS = "[\\s[^'a-zA-Z]]";
I'm at a loss to how i over ride this using the constant delimiter.
Also
If i have a method which is to override another method but extend it, do i use for example update.super() and then write the code i want to extend it with?