What is the real usecase of Local and Protected class member

Hi,

Could anyone explain the real scenario where we use the local and protected class members in UVM.

Definition wise i am clear.

In reply to rupeshblr:

Local and Protected are use by base class library developers to enforce a methodology. The most basic use of this is with the singleton pattern; hen you want to enforce that a particular class only gets constructed once. See https://www.edn.com/design-patterns-in-systemverilog-oop-for-uvm-verification/