2
Answers

if we implement interface in structure and create object of structure then the object of structure stores in stack or heap

Ask a question
syed abid

syed abid

14y
2.2k
1
Interface iface
{
 string name {get;set;}
 void show();
}

struct xyz:iface
{
  //code here
}

I want to know the xyz.name will store in stack of heap.

Answers (2)