Show how to access private or protected members of a class in an object-oriented language from outside an instance of the class, without calling non-private or non-protected members of the class as a proxy.
The intent is to show how a debugger, serializer, or other meta-programming tool might access information that is barred by normal access methods to the object but can nevertheless be accessed from within the language by some provided escape hatch or reflection mechanism.
The intent is specifically not to demonstrate heroic measures such as peeking and poking raw memory.

Note that cheating on your type system is almost universally regarded
as unidiomatic at best, and poor programming practice at worst.
Nonetheless, if your language intentionally maintains a double-standard for OO privacy, here's where you can show it off.

class friendly_class definition deferred.
 
class my_class definition friends friendly_class .
 
  public section.
    methods constructor.
 
  private section.
    data secret type char30.
 
endclass.
 
class my_class implementation .
 
  method constructor.
    secret = 'a password'. " Instantiate secret.
  endmethod.
 
endclass.
 
class friendly_class definition create public .
 
  public section.
    methods return_secret
      returning value(r_secret) type char30.
 
endclass.
 
class friendly_class implementation.
 
  method return_secret.
 
    data lr_my_class type ref to my_class.
 
    create object lr_my_class. " Instantiate my_class
 
    write lr_my_class->secret. " Here's the privacy violation.
 
  endmethod.
 
endclass.
 