Rgd: How to initialize a default value for class private
<p>Below is my .h file</p>

<pre><code>#include &lt;iostream&gt;
#include &lt;string&gt;

using namespace std;

class ClassTwo
{
private:
string sType;
int x,y;
public:
void setSType(string);
void setX(int);
void setY(int);

string getSType();
int getX();
int getY();
};
</code></pre>

<p>I want to construct 2 Constructor.</p>

<p>which constructor 1 will be no paramter, initialize all int value as 0 and string as empty string.</p>

<p>Constructor 2 will be taking in parameter which is sType, x and y using method get set.</p>

<p>but how do i achieve this. should i code this in my cpp file or .h file</p>
