reset password
Author Message
carmend2
Posts: 1
Posted 00:56 Feb 04, 2020 |

I'm from Keenan class section 1, Do I need a getter method for a boolean data field? For my object class the boolean field is to check if the object is on or off, similar to the TV class from the book.

dkwok
Posts: 24
Posted 01:38 Feb 04, 2020 |

Even if your own class design doesn't require to use getters, the assignment still requires you to create one for each data field that's being declared.

Last edited by dkwok at 01:43 Feb 04, 2020.