Method calls

This commit is contained in:
2026-06-16 16:00:52 +02:00
parent d434ec78e7
commit e369c94d21
2 changed files with 56 additions and 17 deletions
-7
View File
@@ -2,16 +2,9 @@ pub module class_test;
pub class Animal {
pub name String;
pub val i32;
constructor() {
self.name = "Rex".to_string();
self.init_v();
}
pub fn void init_v(*mut self) {
self.val = 0;
}
pub fn String speak(*self) {