Lab 7

Let’s Make Music

This week we’ve added some class to our programs, moving us into the Object-Oriented Programming (OOP) paradigm. Objects are yet another abstraction that we can add to our toolbox. They let us represent distinct entities with their own properties (attributes) and abilities (methods). In this lab, you’ll be writing a sound generator. Each sound will be represented as its own SoundWave object.


  • Practice creating and using your own classes
  • Practice overloading operators
  • Learn how to digitally generate music
  • Learn how to work with command-line arguments