title: How do I get name of an instance using a method operating on it in SystemVerilog?
body: <p>Is there any way a method can get name of the object it operates on in SystemVerilog ?</p>
  
  <p>Like implementing</p>
  
  <pre><code>object1.printName()  
  </code></pre>
  
  <p>should print the string</p>
  
  <pre><code>object1
  </code></pre>