Object with Public Value
Write a method getExampleValue
that, given a passed instance of an Example
, returns that Example
s value
property, which is an int
.
The Example
class looks something like this:
You should also assert
that the passed Example
is not null
.