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

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -

YouTubePlayerFragment cannot be cast to android.support.v4.app.Fragment -