protected

  • Encapsulation:

    In short: Encapsulation means keeping a class’s data and the code that changes it together, and controlling who may touch that data from outside. In SystemVerilog you do this with access qualifiers: members are public by default (open to everyone), local limits access to methods of the same class only, and protected works like local…