Answer the question
In order to leave comments, you need to log in
Is it possible to make a variable a so that when b=a, a=null?
You can write:
var a:Int?=1
var b:Int?=0
b=a
a=null Is
n't it that if a value is assigned to another variable, this one becomes null? That is, without explicitly assigning "a=null"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question