first try for inherited-hooks

- add a builtin hook for adapt hooks from parent class.
however, it's still not complete and well written.
- very basic test-cases for this feature added.