Hi Guys!

I have some question about constructor and destructor.
Please help me guys.
Can i use void before the function prototype of the constructor and destructor?

Here's the code:
ClassA.h
==================================
namespace Ui{
class ClassA
}

class ClassA: public QWidget{
Q_OBJECT
public:
explicit ClassA (QWidget *Parent = 0)
~ClassA(void);
private:
Ui::ClassA Ui;
};
==================================
ClassA.cpp
==================================
void ClassA::ClassA (QWidget *Parent)
QWidget(Parent),
Ui(new Ui::ClassA)
{
...
...
}

void ClassA::~ClassA(void)
{
delete Ui;
}
==================================

After compiling I have these errors:

return type specification for constructor is invalid
return type specification for destructor is invalid



Can you help me guys. Thanks in advance.