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

What does a default method body in a trait provide?

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