Kotlinlearncs.online LogoJava
Return to List

Solve: Object with Public Value

Created By: Geoffrey Challen
/ Version: 2021.9.0

Write a method getExampleValue that, given a passed instance of an Example, returns that Examples value property, which is an Int.

The Example class looks something like this:

Related Lessons

Stuck? You may find these lessons helpful:


Attribution must link to this page: https://www.learncs.online/solve/kotlin/object-with-public-value/[email protected]