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
Post a Comment