class MyClass { internal var varName; private var intValue = 1000; public function MyClass (name) { this.varName = name; } public function setInt(numberOf) { this.intValue += numberOf; } }