daily pastebin goal

[Rust] Calling Basketball class.

cwchen Sep 4th, 2017 434 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. fn main() {
  2.     let b: Box<Item>= Box::new(Basketball::new());
  3.     println!("The color of the item is {}", b.color());
  4.     println!("The shape of the item is {}", b.shape());
  5.     println!("The name of the item is {}", b.name());
  6. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand