Advertisement
tyler569

Untitled

Feb 28th, 2017
400
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. iface fooer {
  2. fn foo() -> string;
  3. }
  4.  
  5. class foo {
  6. fn foo() -> string {
  7. "Hello World"
  8. }
  9. new() {}
  10. }
  11.  
  12. fn main() {
  13. let g: fooer = foo::new();
  14. println!(g.foo());
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement