Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

ring Using Self.Attribute and Self.Method

Class Point
        self.x = 10
        self.y = 20
        self.z = 30
        func print
                see self.x + nl + self.y + nl + self.z + nl
Source by ring-lang.github.io #
 
PREVIOUS NEXT
Tagged: #ring #Using
ADD COMMENT
Topic
Name
4+3 =