beyondgrader.com Logo
DemoBrowseAboutTeamLogin

Simple Object Field

Geoffrey Challen // 2020.9.0

Create a class called Simple that stores a single int value using a field named value. Simple should implement a function called setValue that accepts a single int and changes the saved value. (It should not return a value.) Simple should also implement a function called getValue that returns the saved value.

Note that you should include public before your class definition for this problem. We've provided starter code that does that. If that doesn't fully make sense yet, don't worry. It will soon.