Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 YOU
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 hereStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started