>OK, I get it now. I think what you'll need to do is pass a parameter to your CheckLogin() function. Then it would work the way you want it to. I don't know if this the best way to solve this problem, as I said, I've never used shadowing, but I'm pretty sure it will accomplish what you need.
No, this is not what I want. But, here is more information I just found. The problem relies at the declaration level of the derived class. If I don't have any declaration in there and just put cLogin="Login" just before calling CheckLogin(), the value is visible in the class. However, I don't want to initialize cLogin in a method as I need it defined at the declaration level of the derived class so it will be visible in the entire derived class.