java - Local variables and formal parameters with same name in c++? -


in java, class variables , formal parameters can have same name , class variable referenced "this" keyword. there similar in c++?

example in java

public class {     private int x;     public void setx(int x) {         this.x = x;     } } 

what looking this->


Comments

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -