Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions