Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

ring Using This in the class region as Self

func main

        o1 = new program {
                test()
        }

        ? o1

class program

        this.name = "My Application"
        this.version = "1.0"
        ? name ? version

        func test
                ? "Name    = " + name
                ? "Version = " + version
Source by ring-lang.github.io #
 
PREVIOUS NEXT
Tagged: #ring #Using #This #class #region #Self
ADD COMMENT
Topic
Name
5+7 =