Code:
void Polly::SetValues(string Name,string EType,string MinisterOH,string PType,int Noos){
Name1 = Name;
EType1 = EType;
MinisterOH1 = MinisterOH;
PType1 = PType;
Noos1 = Noos;
}
How can I use the same variable name as whats being passed to the constructor. Ie, instead of calling the private instance variable 'Name1' it can be also called 'Name'.

Whats happens in the above code when 'Name1' is called 'Name' (same as whats being passed to it) the method that uses it (getName()) and returns the name, returns nothing. It compiles though...

I know in Java you just say this.Name = Name;

How is this accomplished in c++? Ps, I hope im not to confusing