Question: JAVA PLEASE THANK YOU Assume that the following interface has been created. Do not write any import statements. An interface named AttentionSeeking This interface has

JAVA PLEASE THANK YOUJAVA PLEASE THANK YOU Assume that the following interface has been created.

Assume that the following interface has been created. Do not write any import statements. An interface named AttentionSeeking This interface has a single public method called getAttention that takes a single int parameter and returns a String What you need to do: 1.) Write a class called Cat with a default no argument constructor that implements the interface. 2.) You do not need to create any attributes for this class. 3.) You will need to make the class implement the interface and write a public implementation for the method defined in the (Do not use the public keyword when defining this class.) interface 4.) The implementation of the public method should create a String that indicates how the pet gets attention. For the Cat class that message is: Wrow!!! 5.) The int parameter passed into the method should be used to create the message the number of times indicated by the parameter and should include a new line character after each message. For example: If the method is called on a Cat object and the message is Wrow!!! If the method is passed a value of 4 then the method should return. Wrow!!! Wrow!!! Wrow!!! Wrow!!! SUBMIT 1 of 1: Fri Oct 06 2017 15:43:37 GMT+ 1100 (AEDT) 1 Type your solution here

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!