Problem with Concept : Memory Management, Delegate and Interface
Hi, I have just started learning C# before 20 days so if and but answer of some of the question i can't found are ..
Well, I know when an obj is initalized, enough memory is allocated that can hold the member data (fields and method) ..
1) Now, where methods are actually stored ? in heap or in stack memory ? Is copy of methods are stored for each object ?
2) If i define the constructor than which type of memory is allocated to it (Heap or stack) ? What abt the default constructor that is created by compiler ?
3) what is the advantage of Delegate refrence to Interface & class ?
plz help
thanks in advance