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 Example
s value
property, which is an Int
.
The Example
class looks something like this:
For this problem we're expecting only a method.
Don't define a class, include modifiers like static or public, add import statements, or add code outside the method declaration.Please Log In to Complete Homework Problems