Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn main() {
- let b: Box<Item>= Box::new(Basketball::new());
- println!("The color of the item is {}", b.color());
- println!("The shape of the item is {}", b.shape());
- println!("The name of the item is {}", b.name());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement