beyondgrader.com Logo
DemoBrowseAboutTeamLogin

Simple Object Method 2 (Kotlin)

Geoffrey Challen // 2021.9.0

Create a class called Simple that stores a single mutable Int value in a property named value. Also provide a method inverse which returns the stored value multiplied by -1.