Question: 1 . Use IDEA to open the Kotlin _ OOP project that we worked on in class. If you code does not run, you can

1. Use IDEA to open the Kotlin_OOP project that we worked on in class. If you code does not run, you can download my version from Modules.
2. Create a new class called Mouse that extends the Animal class. (20 pts)
3. The mouse is named "Jerry". Jerry does make sounds, it squeaks. Modify the code accordingly. (30 pts)
4. Jerry is not like other animals. Jerry likes to store cheese. Create a private global integer variable for Jerry, named "CheeseAmount", set it by default to 0. Then, create a function "StealCheese" that increments the CheeseAmount by an integer x (where x is an argument), and a function "EatCheese" that decrements CheeseAmount by 1.(40 pts)
5. Create a new GitHub repository named Kotlin-OOP and upload your code. (Make sure the repository is public, otherwise I cannot see it and thus cannot correct it).(10 pts)
6. Submit the final URL in this Activity.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!