0

How to Fix The setter & getter ?

Please help me to finish my online learning academy. The question is as follows: TODO 1: Complete the code in the Cat class with the following provisions: -Create a Getter setter function for the Sleep property in which there is a function for printing text: The Getter/setter function is invoked -Add the code in the toSleep() function to print the text: [$name], sleep! If sleep is true and the text is: Name, let's play! If sleep is false. -------------------------------------------------------------------------------------------------------- You can change the Kotlin code that I've created to fix it in this link : https://code.sololearn.com/cOvmXL5KrVG8/#kt . Thanks. Hope your day is fun!

4/7/2020 3:40:41 AM

Adam Fakhrul Rozi

2 Answers

New Answer

+1

https://code.sololearn.com/cH39DwR3C3ha

+1

Thank You So Much, Sir...