package hellouniverse; class hello { var greeting; // instance-level variable a.k.a. field static var said = 0; // class-level (static) variable function hello ( who ) // constructor function { // name equals to the name of the class greeting = who; // assigning value to the field } function say () // instance-level function a.k.a. method { std::out.printf("%d. Hello %s!\n", said, greeting); // std::out is an instance of class std::stream // (package std, variable out) ++said; // incrementing static class variable, // this variable will be shared among } // all instances of the class } function main() { var hi = new hello("World"); hi.say(); hi.greeting = "Universe"; hi.say(); }