Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumRustdefault and blanket implsSingle-choice MCQ

Given a trait method with a default body that calls another required method, what happens if an implementor overrides the default?

trait Animal { fn name(&self) -> String; fn describe(&self) -> String { format!("A {}", self.name()) } }