#include "Radio.h" bool CRadio::PowerOn = false; void CRadio::TurnUpVolume() //really void CRadio::TurnUpVolume(CRadio* this) { Volume++; } void CRadio::TurnDownVolume() //really void CRadio::TurnUpDown(CRadio* this) { Volume--; } void CRadio::SetStation(int Station) //really void CRadio::SetStation(CRadio* this, int Station) { //::Station = Station; //error C2039: 'Station' : is not a member of '`global namespace'' //Station = Station; // no error unless you make the station parameter const //Station by its self refers to the local Station this->Station = Station; } void CRadio::TurnPowerOn() //really void CRadio::TurnPowerOn() { PowerOn = true; } void CRadio::TurnPowerOff() //really void CRadio::TurnPowerOff() { PowerOn = false; } void CRadio::SetPower(bool PowerOn) //really void CRadio::SetPower(bool PowerOn) { //Just an example of what to do if your parameter has the same //name as a static member var. CRadio::PowerOn = PowerOn; }