RosettaCodeData/Task/Classes/Elena/classes.elena
2023-09-01 09:35:06 -07:00

27 lines
363 B
Text

import extensions;
class MyClass
{
int Variable : prop;
someMethod()
{
Variable := 1
}
constructor()
{
}
}
public program()
{
// instantiate the class
var instance := new MyClass();
// invoke the method
instance.someMethod();
// get the variable
console.printLine("Variable=",instance.Variable)
}