Kotlinlearncs.online LogoJava
Return to List

Homework: Simple Object Method 2 (Kotlin)

Created By: Geoffrey Challen
/ Version: 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.

Related Lessons

Stuck? You may find these lessons helpful: