Difference between Hooks and Abstract Methods in Java -


this quoted question study materials university.

it makes totally no sense me.

for me hooks specified points in (mostly sequential not only) programs, can specify own methods or callbacks executed.

for example application has "on before shutdown hook", can register callback method there saves user data disk before shutdown.

abstract methods self explaining.

to me different? or either of things have 2nd meaning don't know of? did quick search didn't find anything.

personally, go professor , ask clarification before asking stackoverflow community.

...but, being said, believe (if description of hook correct) class can register callback method hook whereas abstract method forces child class implement own algorithm given method.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -