Advertisement
tyler569

rust Oct 2014

Dec 1st, 2019
454
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 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