using same c++ access specifiers mulitple times
<p>What is the purpose of declaring multiple "public" specifiers over and over again when the next line is just right below it, or few lines below it.  I can understand this is requirement when the codes modified the attribute of some identifiers, i.e., those that are buried within a macro (hence changing the access attributes within the macro, so we need to "redefined" coming out of the macro), or when we have many identifiers per access specifier section.   But what is the purpose of keep using "public", "public", over and over again?</p>

<p>Code ...</p>

<pre><code>class CDrawMFCView : public CView
{
protected: // create from serialization only
    CDrawMFCView();
    DECLARE_DYNCREATE(CDrawMFCView)

// Attributes
public:
    CDrawMFCDoc* GetDocument() const;

// Operations
public:

// Overrides
public:
    virtual void OnDraw(CDC* pDC);  // overridden to draw this view
    virtual BOOL PreCreateWindow(CREATESTRUCT&amp; cs);
protected:
  // etc.,

};
</code></pre>
