working class
This commit is contained in:
+2
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user