hi, well... I'm confused about what can I do and what I can't do in CLASS SCOPE.
For example
=========================
class myclass
{
int myint = 0;
myint = 5; *// this doesnt work. Intellisense doesn't letme work with myint... why?*
void method()
{
myint = 5; *//this works. but why inside a method?*
}
}
==================================
class class1
{
public int myint;
}
class class2
{
class1 Z = new class1();
Z.myint = 5; *//this doesnt work. like Z doesnt exists for intellisense*
void method()
{
Z.myint = 5; *//this Works, but why inside a method?*
}
}
Thats I make so many mistakes, I dont understand what works on class scope and what doesnt work.
I know that there are local varaibles and its life cycle. But I dont understand the so well the idea.