class myClass { private: int num; int Calc(int x); }; int myClass::Calc(int x) { int num = 12536; //constant return num /*First One (Global)*/ + num /*2nd One (1 inside the function*/ + x; }
this->num
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)