title: Inheritance and base class method call python
body: <p>I would like a method in a base class to call another method in the same class instead of the overriding method in an inherited class.
  I would like the following code to print out </p>
  
  <p>Class B: 6</p>
  
  <p>Class A: 9</p>
  
  <p>Can this be done?</p>
  
  <hr>
  
  <pre><code># Base class definition
  class ClassA(object):
      def __init__(self):
          print("Initializing A")
  
      # hoping that this function is called by this class's printFnX
      def fnX(self, x):
          return x**2
  
      def printFnX(self, x):
          print("ClassA:",self.fnX(x))
  
  # Inherits from ClassA above
  class ClassB(ClassA):
      def __init__(self):
          print("initizlizing B")
  
      def fnX(self, x):
          return 2*x
  
      def printFnX(self, x):
          print("ClassB:", self.fnX(x))
          ClassA.printFnX(self,x)
  
  bx = ClassB()
  bx.printFnX(3)
  </code></pre>