IN THIS LESSON

Main objective:

Introduce the fundamental principles of object-oriented programming and demonstrate how to organise robot software into classes and objects, making the code more structured, reusable and easier to maintain.

Topics covered:

  • OOP fundamentals: classes, objects, attributes and methods.

  • Refactoring procedural robot code into classes.

  • Class design using CRC cards.

  • Class responsibilities and communication between classes.

Outcome:

Students will see how previous code can be structured as object-oriented code.