I want to create my custom object using the assignment operator as the string does.
For example,
If I want to create an Object of employee class in a simple way like -
Class Employee{
private String name;
private int age;
private String country;
}
Employee employee = "Bagesh,27,India";
So is it possible to create an object the same way String class creates? or anyone can suggest the internal working of string assignment operator object creation.
I have already searched for it on many links but didn't get a complete answer.