Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyRusttraits basics and implSingle-choice MCQ

When you define a trait method with a default body, what happens?

trait Greeter { fn name(&self) -> String; fn hello(&self) -> String { format!("Hi, {}", self.name()) } }