working class

This commit is contained in:
2026-05-05 19:40:45 +02:00
parent cf99ef58c3
commit efa9d51eb6
2 changed files with 17 additions and 3 deletions
+2 -1
View File
@@ -2,10 +2,11 @@ class MyClass {
String my_item;
constructor() {
self.my_item = "Hello World!".to_string();
}
}
void main() {
var my_class = MyClass::new();
println!("{}", my_class.my_item);
}