c++ - Access base class function from derived class -
i wanted ask if im understanding process right: http://doc.trolltech.com/qq/qq17-ratecontrol.html#whoneedstrafficcontrolanyway in example there rctcpsocket derived qtcpsocket in member function of qtcpsocket overwritten, namely qint64 rctcpsocket::bytesavailable() const. following line call member function direclty base class: qtcpsocket::bytesavailable()
i mean qtcpsocket additional functions , overwritten function bytesavailable(). call non-overwritten function?
this syntax forms indeed allows call ascendant implementation of function , not overridden one.
most usefull if want add code own class implementation still let parent class "core stuff"
Comments
Post a Comment