This has nothing to do with Qt.
Here is a link to a good C++ book: http://www.mindview.net/Books/TICPP/...ngInCPP2e.html

and a simple example:
Qt Code:
  1. class A {
  2. public:
  3. virtual void methodA(){ std::cout << "Method A::A" << std::endl; }
  4. };
  5. class B : public class A {
  6. public:
  7. void methodA(){ std::cout << "Method B::A" << std::endl; }
  8. };
To copy to clipboard, switch view to plain text mode 

B is a subclass of A and reimplements a virtual method "methodA".

BTW. This is related to this thread.