S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which keyword makes a trait method optional to implement?

  • (A) fn default
  • (B) optional
  • (C) default
  • (D) base
  • Correct Answer - Option(C)
  • Views: 9
  • Filed under category Rust
  • Hashtags:

Explanation by: Shyam Dubey
default implementation in traits allows the method to be optional.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.