Eduard,
Many thanks for the code it does what I am looking for. Do you know if there are plans for the compiler to check for the implementation of abstract methods instead of having to inherit code to do this?
A couple of things I have noticed:
- If the method is inherited in a Persistent class, it won't compile.
- It looks as though it checks for the name of the abstract method but not the number of parameters the method requires.
But otherwise that is what I am looking for, I just have to remember to add the AbstractChecker to the inheritance list.
Thanks again.
Hi Jenna,
Thanks for your response.
Fully understand your response but unless I am doing something wrong, Cache does not seem to throw an error/warning if the subclass does not implement the abstract methods defined in the superclass.
My understanding is that inherited abstract methods in subclasses must be implemented (even if the implemented method is empty) to standardise class interfaces but in my code this does not seem to be being enforced.
Thanks again,
Ken
Thanks again for the code, it does exactly what I am looking for. However, I have amended the code to list all of the abstract methods required to be implemented for the subclass in the error message.