Computer Science, asked by akshara1591, 1 year ago

Is object of a class mutable? Why/why not?

Answers

Answered by Adwaitm
1

Its type is defined at runtime and once set can never change, however its state can be changed if it is mutable. Simple put, a mutable object can be changed after it is created, and an immutable object can't.  Custom classes are generally mutable.

Similar questions