SystemVerilog OOP Mastery · All levels

Interface Classes and `implements`: Interview Questions

Interview Questions for Interface Classes and `implements`.

Interview questions

Q1. Why would you choose `interface class` over another abstract base class?

Answer: Because interface classes express capability contracts without consuming the single `extends` slot, so unrelated hierarchies can share one API.

Q2. Can a class implement more than one interface class in SystemVerilog?

Answer: Yes. A class can `implements` multiple interface classes while still `extends` exactly one base class.

Related topics