Dumb question: can I change a constructor in Java to be similar to a String's constructor (for example)? Such as calling
class myclass{}
with
myclass sc = "text";
Is this possible in any way?
Dumb question: can I change a constructor in Java to be similar to a String's constructor (for example)? Such as calling
class myclass{}
with
myclass sc = "text";
Is this possible in any way?