Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to use methods defined within class

class c:
    def f(self):
        print("abc")

    def g(self):
        self.f()
        print("def")
 
PREVIOUS NEXT
Tagged: #methods #defined #class
ADD COMMENT
Topic
Name
4+2 =