All pastes #753799 Raw Edit

Anonymous

public text v1 · immutable
#753799 ·published 2007-10-29 15:42 UTC
rendered paste body
/* Author: Laizerox */
/* pelaaja.h on ... */

using namespace std;

#define <string>

//pelaaja luokka tässä määrittellemme ja kutsumme kaikkei roska :)
class Pelaaja
{
      private:
              string name;
              int age;
              float money;
              bool isSmoker;
              bool sex;
              
      public:
             Pelaaja()
             {
                      name = "";
                      age = 0;
                      money = 0;
                      isSmoker = false;
                      sex = false;
             }
             
             string TellName()
             {
                    return name;
             }
             
             int TellAge()
             {
                 return age;
             }
             
             void TellSex()
             {
             }
             
             void TellSmoker()
             {
             }
             
             void ChangeName(string Name)
             {
                  name=Name;
             }
             
             void SetSmoker()
             {
             }
              
              
};