Skip to content
U
uByte
Tutorials
🐹
Go
Beginner-friendly
🐍
Python
Clean & readable
🟨
JavaScript
Web & Node.js
☕
Java
Enterprise & OOP
🦀
Rust
Systems programming
⚙️
C++
Performance & control
💜
C#
.NET & game dev
Interview Prep
🎯
All problems
Browse every language
🐹
Go
🐍
Python
🟨
JavaScript
☕
Java
🦀
Rust
⚙️
C++
💜
C#
💬
Interview experiences
Real stories shared anonymously
Certifications
📝
Certifications
Coding exams by language
🐹
Go
🐍
Python
🟨
JavaScript
☕
Java
🦀
Rust
⚙️
C++
💜
C#
U
uByte
U
uByte
Traits
Instructions
Discuss
Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
trait Greet { fn hello(&self) -> String; } struct Person { name: String } struct Robot { id: u32 } impl Greet for Person { fn hello(&self) -> String { format!("Hi, I'm {}", self.name) } } impl Greet for Robot { fn hello(&self) -> String { format!("BEEP. I AM ROBOT {}.", self.id) } } fn main() { let p = Person { name: String::from("Alice") }; let r = Robot { id: 42 }; println!("{}", p.hello()); println!("{}", r.hello()); }
Go
Python
C++
JavaScript
Java
Rust
C#
▶ Run
✓ Check
↺ Reset starter
Share
Output
Click Run to execute, or Check to validate.
💬 Community
✨ Ask AI
Discussion
Sign in
to join the discussion.