Simple Object Method (Kotlin)
Geoffrey Challen // 2021.2.0
Create a class called Simple
that stores a single mutable Int
variable in a property named value
.
Also provide a method squared
which returns the stored value, squared.
Create a class called Simple
that stores a single mutable Int
variable in a property named value
.
Also provide a method squared
which returns the stored value, squared.