Hi all
I am new to Qt3.1(Linux OS). Can anybody Explain How to use the Subclass with an Example.
Thanx
Merry
Hi all
I am new to Qt3.1(Linux OS). Can anybody Explain How to use the Subclass with an Example.
Thanx
Merry
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:
class A { public: virtual void methodA(){ std::cout << "Method A::A" << std::endl; } }; class B : public class A { public: void methodA(){ std::cout << "Method B::A" << std::endl; } };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.
Yaa after sending you the new thread I Viewed that solution .
Thanx
Merry
Bookmarks