✏️ Explanatory Question

What is the difference between Hookable, Wrappable, and Replaceable attributes?

👁 3 Views
📘 Detailed Answer
🟡 Medium
💡

Answer with Explanation

  • Hookable → Controls whether pre/post handlers are allowed.

  • Wrappable → Controls whether a method can be wrapped in CoC.

  • Replaceable → Controls whether CoC must call next() unconditionally.