title: Access to functions through series of classes
body: <p>Straight forward to get to the problem, is how to access to a function, which is inside a class from another class and from another class. I know how to get access to a function inside a class from another class. But this time is one more class is between them. </p>
  
  <p><strong>The code:</strong></p>
  
  <pre><code>class A:
      def __init__(self, x):
          y = x
          print(y)
          self.classb = B()
  
  class B:
      def __init__(self):
          print('I am class B')
          self._classC = C()
  
      def functionb(self):
          print('I am a function in class B')
  
  class C:
      def __init__(self):
          print('I am class C')
      def functionc(self):
          print('I am a function in class C')
  
  Access_to_A = A(1)
  </code></pre>
  
  <p>Calling <code>def functionc</code> directly from <code>class A</code>. Thanks for your help.</p>