C++, please explain Classes to a Python user?
<p>I'm trying to learn C++, Thanks to this article I find many similarity between C++ and Python and Javascript: <a href="http://www.cse.msu.edu/~cse231/python2Cpp.html" rel="nofollow">http://www.cse.msu.edu/~cse231/python2Cpp.html</a></p>

<p>But I can't understand C++ Classes at all, they looks like Javascript prototypes, but not that easy.</p>

<p>For example:</p>

<pre><code>//CLxLogMessage defined in header

class myLOG: public CLxLogMessage{
  public:
    virtual const char *    GetFormat (){
            return "Wavefront Object";
    }

    void    Error (const std::string &amp;msg){
            CLxLogMessage::Error (msg.c_str ());
    }

    void    Info (const std::string &amp;msg){
            CLxLogMessage::Info (msg.c_str ());
    }

 private:
    std::string     authoringTool;
};
</code></pre>

<p>Question: What is this Public/Private stuff at all!?</p>

<p>Edit: To be honest, I more enjoy C++ than Python, because I can learn truth meaning of everything, not simple automated commands, for example I preferred to use "int X" rather than "X" alone.</p>

<p>Thanks</p>
