Hardware interview practice
Manual do_copy and do_compare
A derived transaction implements manual do_copy and do_compare methods. Which practice is essential for correct base-class and type behavior?
Choose one
Answer choices
- A. Call the corresponding super method and safely cast the rhs object before accessing derived fields
- B. Call new on rhs inside each method and replace the caller's object
- C. Raise a run-phase objection during every comparison
- D. Use only get_type_name because field values must not be inspected
