Question: java Moving to another question will save this response. Question 4 of 6 Question 4 4 points Save Awe ICLO 11 Consider the class Cat.

 java Moving to another question will save this response. Question 4
java

Moving to another question will save this response. Question 4 of 6 Question 4 4 points Save Awe ICLO 11 Consider the class Cat. It has a kindString) and a age(int). It has an initialization constructor, a default constructor, setters and getters, and a tostring method. Assume this classis Blyen...do not write the class methods Write a method readCats(String inputFileName} that does the following 1. opens the input file name for reading 2. Reads the the kind and the age of each cat in the file 3.creates an object of type Cat and fills ie with the read information 4. then displays this object using the toString method of the class Cat. 5. Handel all possible exceptions Sample input file Persian 3 Egyptian 2 Siamese 4 For the toolbar, press ALT F10 (PC) or ALT+FN+F10(Mac) BIUS Paragraph Arial 14px PE > T. 2 a X

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!