Amp - } // Method that sets a new amplifier volume void...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
// AMP.CPP // Amplifier class implementation / #include "amp.h" # // Constructor Amplifier::Amplifier() :power(OFF), volume(0) { } // Method that turns on the amplifier void Amplifier::On() { power = ON; } // Method that turns off the amplifier void Amplifier::Off() { power = OFF;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: } // Method that sets a new amplifier volume void Amplifier::Volume(int NewVolume) { if(power == ON) volume = NewVolume; } // Method that returns the current volume setting int Amplifier::CurrentVolume() { return(volume); }...
View Full Document

Ask a homework question - tutors are online