Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

mro in python

class A:
  def method(self):
    print("A.method() called")

class B(A):
  def method(self):
    print("B.method() called")

b = B()
b.method()
 
PREVIOUS NEXT
Tagged: #mro #python
ADD COMMENT
Topic
Name
3+9 =