Q:

Manually Converting a Python Class to a C++ Class

I have some code I need to convert from Python to C++. Since I do not know C++ well, I would like to use this example to help me understand how a Python class relates/can be converted to a C++ class.
Given the following Python code:
class MyClass(object):
    # Constructor
    def __init__(self, arg1, arg2=True):
        self.Arg1 = arg1
        self.Arg2 = arg2

    # Function __my_func__
    def __my_func__(self, arg3):
        return arg3

What would a proper translation to C++ be?
I've been trying to teach myself how to do this with the tutorial on cplusplus.com, but I still don't understand how I can relate this to Python.
I've also seen some SO questions asking how to convert a Python program to C++ (e.g. Convert Python program to C/C++ code?), but most answers suggest using a specific tool like Cython to do the converting (my desire is to do it by hand).

A:

It would look something like this. The arg1 and arg2 variables are private, meaning that they're not accessible outside of the class unless you write a getter/setter function (which I've added for arg1).
class MyClass {
    public:
        MyClass (int arg1, bool arg2 = true);
        int myFunc (int arg3);
        int getArg1 ();
        void setArg1 (int arg1);
    private:
        int arg1;  // Can be accessed via the setter/getter
        bool arg2; // Cannot be accessed outside of the class
};

MyClass::MyClass(int arg1, bool arg2 = true) {
    this.arg1 = arg1;
    this.arg2 = arg2;
}

int MyClass::myFunc (int arg3) {
    return arg3;
}

// Getter
int MyClass::getArg1 () {
    return this.arg1;
}

// Setter
void MyClass::setArg1 (int arg1) {
    this.arg1 = arg1;
}

