Tuesday, July 16, 2013

bell

#ifndef __BELL__
#define __BELL__

#include "iBell.h"
#include "SoundMaker.h"
template<class T>
class Bell : public SoundMaker<T>, public iBell
   {
   private:
   protected:
   public:
      Bell() : SoundMaker() {sound = "Ding"}
      void switchHammer()
         {
         if(sound == "Ding")
            sound = "Dong";
         else
            sound = "Ding";
         }
   };


#endif

No comments:

Post a Comment