I have a kind of confusion here. I have a bunch of classes under mainwindow. One is the base class: DocumentViewer. Under this we have multiple subclasses, like PDFViewer, RichTextViewer, DocumentViewer, ImageViewer etc. 
The property Borders which is part of base class i.e. DocumentViewer. And ImageViewer has the property AspectRatio. But as I am inheriting the base class, can I access that Borders in derived class and use accordingly for my ImageViewer class?
Or I need to create same methods for the ImageViewer class too?
    class DocumentViewer : public MainWindow
        {
        private: bool Borders;
        public: bool GetBorders();
                void PutBorders(...);
        }
....
....
        class ImageViewer : public DocumentViewer
        {
        private: bool AspectRatio;
        public: bool GetAspectRatio();
                void PutAspectRatio(...);
        }
 
     
    