Below is my .h file
#include <iostream>
#include <string>
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();
};
I want to construct 2 Constructor.
which constructor 1 will be no parameter, initialize all int value as 0 and string as empty string.
Constructor 2 will be taking in parameter which is sType, x and y using method get set.
but how do i achieve this. should i code this in my cpp file or .h file