Kotlinlearncs.online LogoJava
Return to List

Homework: 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:

You should also assert that the passed Example is not null.

Related Lessons

Stuck? You may find these lessons helpful: