// In this, the enum is declared globally

#include <iostream>
#include <string>

using namespace std;

enum Hand {RIGHT,LEFT};

class Batsman {
    public:
        Batsman(string s, Hand h) {
            name = s;
            hand = h; 
        }
        void setName(string s) {
            name = s;
        }
        void setHand(Hand h) {
            hand = h;
        }
        string getName() {
            return name;
        }
        Hand getHand() {
            return hand;
        }           
    private:
        string name;
        Hand hand;  
};

int main() {
    Batsman B1("Ryder",LEFT);
    Batsman B2("McCullum",RIGHT);
}