5
C ++ में निजी वर्चुअल विधि
C ++ में एक निजी विधि को आभासी बनाने से क्या फायदा है? मैंने इसे एक ओपन सोर्स C ++ प्रोजेक्ट में देखा है: class HTMLDocument : public Document, public CachedResourceClient { private: virtual bool childAllowed(Node*); virtual PassRefPtr<Element> createElement(const AtomicString& tagName, ExceptionCode&); };