It is not possible to set this
. You can however create a method which copies all values of the receivedclass
object to this
if the types are compatible. But i don’t know if this is what you want.
3
solved Is that possible to do this = variable in Java?