0
1
llucycodes42
The following code defines a trait named name. This trait defines a single method named hello, which takes an instance of T as a parameter and prints "Hello, world!" to the console.
Shortcut: trait
trait name<T> {
}
0
1
llucycodes42
The following code defines a trait named name. This trait defines a single method named hello, which takes an instance of T as a parameter and prints "Hello, world!" to the console.
Shortcut: trait
trait name<T> {
}