Skip to content

Exercise: Add a new method to the Particle class #1

@pberkes

Description

@pberkes
  • Make the function update_position into a method of the class Particle
  • Where does the position (x, y) of the particle belong? Modify the constructor of the class Particle if necessary

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions