Click here to Skip to main content
15,925,782 members
Home / Discussions / C#
   

C#

 
AnswerRe: Tools for coding rules Pin
Vasudevan Deepak Kumar11-Jun-08 0:20
Vasudevan Deepak Kumar11-Jun-08 0:20 
Questiontrailing zero in memory stream Pin
George_George10-Jun-08 21:32
George_George10-Jun-08 21:32 
AnswerRe: trailing zero in memory stream Pin
leppie10-Jun-08 23:31
leppie10-Jun-08 23:31 
GeneralRe: trailing zero in memory stream Pin
George_George10-Jun-08 23:41
George_George10-Jun-08 23:41 
Questionhow to dynamically load pictures from Resource file Pin
Raza Hussain10-Jun-08 21:14
Raza Hussain10-Jun-08 21:14 
AnswerRe: how to dynamically load pictures from Resource file Pin
J a a n s10-Jun-08 21:22
professionalJ a a n s10-Jun-08 21:22 
QuestionBuilding Internet Explorer Tracker Service Pin
shinboxe10-Jun-08 21:10
shinboxe10-Jun-08 21:10 
QuestionScope of variable Pin
Hum Dum10-Jun-08 20:55
Hum Dum10-Jun-08 20:55 
When u make a function call, all the value type of the calling function are pushed in stack. As soon as function returns control, the value types & memory used by variables inside function got released.

string and object are refrence type.

class A
{
string abc = "";// at class level.
...//some variables
...
...
}


class B
{
A obj = new A();
obj.abc = "Value";
}



class C
{
A obj = new A();
}


Now sequence in which these class got called is A->B->C.
What happen to value i stored in abc during class B, does It got restore to default by C class obj creation.

What is the scope of variables declare at class level, as soon as control comes out from a class does they restore to default?

Thanks & regards.
AnswerRe: Scope of variable Pin
N a v a n e e t h10-Jun-08 20:58
N a v a n e e t h10-Jun-08 20:58 
GeneralRe: Scope of variable Pin
Hum Dum10-Jun-08 21:58
Hum Dum10-Jun-08 21:58 
AnswerRe: Scope of variable Pin
Guffa10-Jun-08 22:32
Guffa10-Jun-08 22:32 
GeneralRe: Scope of variable [modified] Pin
Hum Dum10-Jun-08 23:30
Hum Dum10-Jun-08 23:30 
AnswerRe: Scope of variable Pin
buchstaben10-Jun-08 23:45
buchstaben10-Jun-08 23:45 
GeneralRe: Scope of variable Pin
Guffa11-Jun-08 1:02
Guffa11-Jun-08 1:02 
GeneralRe: Scope of variable Pin
Hum Dum11-Jun-08 1:17
Hum Dum11-Jun-08 1:17 
QuestionReversing the string Pin
namrata510-Jun-08 20:51
namrata510-Jun-08 20:51 
AnswerRe: Reversing the string Pin
J a a n s10-Jun-08 21:09
professionalJ a a n s10-Jun-08 21:09 
AnswerRe: Reversing the string Pin
Krazy Programmer10-Jun-08 21:32
Krazy Programmer10-Jun-08 21:32 
AnswerRe: Reversing the string Pin
Roger Alsing10-Jun-08 21:37
Roger Alsing10-Jun-08 21:37 
GeneralRe: Reversing the string Pin
Programm3r10-Jun-08 21:44
Programm3r10-Jun-08 21:44 
AnswerRe: Reversing the string Pin
Russell Jones10-Jun-08 22:49
Russell Jones10-Jun-08 22:49 
AnswerRe: Reversing the string Pin
Vasudevan Deepak Kumar11-Jun-08 1:51
Vasudevan Deepak Kumar11-Jun-08 1:51 
QuestionReport Wizard Problem Pin
Programm3r10-Jun-08 20:51
Programm3r10-Jun-08 20:51 
AnswerRe: Report Wizard Problem Pin
half-life10-Jun-08 23:24
half-life10-Jun-08 23:24 
GeneralRe: Report Wizard Problem Pin
Programm3r10-Jun-08 23:59
Programm3r10-Jun-08 23:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.