Iam pretty new to OOP, but for a text game, would this be ok for
the player class? any suggestions appricaiated:
Code:class Player { public: Player(); // constructor int health; string name; char weapon[15]; private: bool palaive; bool pdead; }; Player::Player() { health = 100; name; weapon = "sword"; } // in main Player play // call member cout << Weapon is: " << play.weapon; cout << "health is: " << play.health; return 0; }