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