C++ (Qt){ QVBoxLayout *layout = new QVBoxLayout( this ); QTextEdit *edit = new QTextEdit( this ); layout->addWidget( edit ); QLabel *label = new QLabel( this ); layout->addWidget( label ); ... }
C++ (Qt)class BaseClass {public: int X;public: BaseClass () {init();} virtual init() {X=0;}}; class ChildClass: public BaseClass {public: ChildClass () {} virtual init() {X=111;}};
C++ (Qt)...