SyntaxFix
Write A Post
Hire A Developer
Questions
Just call it and supply self
self
class A: def m(self, x, y): print(x+y) class B: def call_a(self): A.m(self, 1, 2) b = B() b.call_a()
output: 3