Uncover the object-oriented aspects of Rust, a programming language that blends the paradigms of both object-oriented and systems programming. This course provides a comprehensive guide to leveraging Rust’s struct, traits, and methods to design and implement modular, reusable, and maintainable code.
Overview
Syllabus
- Lesson 1: Introduction to Structs in Rust
- Working with Structs in Rust
- Define and Use Structs in Rust
- Fix the Movie Struct
- Using a Song struct
- Creating and Updating Movie Structs
- Fix Bugs using Album Struct
- Lesson 2: Adding Functionality with Methods
- Employee Management Methods
- Fix Bugs in Circle Struct
- Structs for Product Management
- Methods in Spacecraft Structs
- Implement a Game Character
- Lesson 3: Introduction to Modules and Encapsulation
- Bank Account Module Encapsulation
- Using a Subscription Account Module
- Fix the Secret Box Module
- Managing Employee Salaries
- Simulating a Video Game Character
- Lesson 4: Introduction to Traits in Rust
- Traits in Action with Shapes
- Fix the Noise trait
- Creating a Drive Trait
- Implementing Methods for Traits
- Implementing Traits for Perimeter Calculation
- Lesson 5: Exploring Polymorphism with Traits
- Polymorphism with Shape in Rust
- Implement Polymorphism with Default Methods
- Fix Bugs in Rust Traits
- Implement Polymorphism in Rust
- Polymorphism with Video Games