Home / Questions / What is the difference between Hookable, Wrappable, and Replaceable attributes?
Explanatory Question

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

👁 1 Views
📘 Detailed Answer
🕒 Easy to Read
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.

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.