text: #include <iostream>
  using namespace std;
  
  class MyClass {
      public:
          MyClass() {
              regVar = 0;
          }
      private:
          int regVar;
  
      friend void someFunc(MyClass &obj);
  };
  
  void someFunc(MyClass &obj) {
      obj.regVar = 42;
      cout << obj.regVar;
  }
  
  int main() {
      MyClass obj;
      someFunc(obj);
  }
  
  