Behavior of String,Int32 etc classes and assignment

Viewed 72

This might sound stupid. We know we can assign value to a string variable as following.
String name = "myname";

String is a reference Type, but don't require new operator while declaring and assigning value. If I want to design a custom class with such a behavior, how would I proceed?

Thanks

5 Answers
Related