Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

mro in python

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

class B:
  pass

class C(B, A):
  pass

c = C()
c.method()
 
PREVIOUS NEXT
Tagged: #mro #python
ADD COMMENT
Topic
Name
8+6 =