incubator-bluesky-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shan Jiang <dane.x...@gmail.com>
Subject An question about declaration of a virtual function in a subclass
Date Fri, 17 Dec 2010 09:02:26 GMT
In QT project on Linux , Is the declaration of a virtual function in a
subclass  available without the keyword of ' virtual ' ?
e.g.
class QIODevice {
   .......
    virtual   qint64 readData(char *data, qint64 maxlen);
};

class AudioInfo : public QIODevice
{
   .....
protected:
    qint64 readData(char *data, qint64 maxlen);
};
The menber function of readData(...) of AudioInfo is *virtual* ?


-- 
Shan Jiang a.k.a dane @ Bluesky Dev Team XJTU

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message