Question: 1 . Create a class named Cat. Declare two ( 2 ) empty instance variables: catType ( String ) and cutenessLvl ( int ) .

1. Create a class named Cat. Declare two (2) empty instance variables: catType (String) and cutenessLvl (int).2. Create a public constructor without parameters. Inside the constructor, set the values of catType and cutenessLvl to "Unknown" and 3, respectively. 3. Add another public constructor with two (2) parameters: type (String) and lvl (int). Inside the constructor, assign type to catType and level to cutenessLvl. 4. Create an int type of method named getCuteness(). This method shall return the cat's cuteness level.

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!