why string is a reference type?
Posted
by saurabh
on Stack Overflow
See other posts from Stack Overflow
or by saurabh
Published on 2010-03-16T14:43:34Z
Indexed on
2010/03/16
14:46 UTC
Read the original article
Hit count: 392
We know that string is a reference type , so we have
string s="God is great!";
but on the same note if i declare class say Employee which is a reference type so why below piece of code does not work ?
Employee e = "Saurabh";
2- How do we actually determine if a type is a reference type or value type?
© Stack Overflow or respective owner