A quick multiple-choice check before you move on. Answer every question, then submit to see how you did.
1.You have let user = User { name: String::from("Alice"), age: 30, active: true }; and later call user.have_birthday(), where have_birthday is defined as fn have_birthday(&mut self). Why does this fail to compile?
2.In an impl User block, what distinguishes an associated function (like a new constructor) from a method?
3.Given #[derive(Debug)] on User, which formatting call will compile to print a User instance?
4.A method is defined as fn greet(&self) -> String. What does the &self receiver communicate about how greet uses the instance?
5.According to the module, how does Rust achieve abstraction and shared behavior across different struct types, given that structs have no inheritance?