Inheritance builds specialized transactions from shared base classes. Polymorphism lets code written against a base handle drive any derived type through virtual methods and checked casts.
Lesson | What you build |
|---|---|
A derived AXI transaction that reuses its base through super. | |
Base-handle calls that reach derived overrides at runtime. | |
Safe downcasts with explicit function-form and task-form handling. | |
Abstract bases, interface contracts, a mixed queue, and a factory. |
The most-derived override. A virtual call resolves on the object's runtime type, not on the handle's declared type.