Having this tasteful class
public abstract class CakeSkill {
The class that extends it will be something like
class Cheff extends CakeSkill {
But of course it won’t work,
finalMandaroryTouch () was not called, then no cake will end in cherry.
[EDIT]
It may be a solution.
class MemoriousCheff extends CakeSkill {
but requires:
- Cheff has an excellent memory that don't forget to call finalMandatoryTouch ()
- Creating finalMandatoryTouch () for protection (at least)
[/ EDIT]
It would be great! (but not Java) if something like this can be done
abstract public void cook() { @implementedMethod finalMandatoryTouch(); }
How can this useful functionality be implemented?
Thank you very much
source share