Question: module is object oriented programming part 1 Required Skills Inventory Implement a class according to given specifications Implement object attributes as private instance variables Implement

module is object oriented programming part 1

Required Skills Inventory Implement a class according to given specifications Implement objectattributes as private instance variables Implement an explicit default constructor method Implement

Required Skills Inventory Implement a class according to given specifications Implement object attributes as private instance variables Implement an explicit default constructor method Implement an overloaded parameterized constructor method Implement getter methods Implement setter methods Implement operations as public instance methods Do not use any language features that have not been covered to this point in the course materials. Problem Description and Given Info Implement the Kitty Class In a file named Kitty.java, implement the class described below. The Kitty class must have the following private instance variables (fields): a variable named name that will store a String a variable named age that will store an int The Kitty class must have the following public constructor methods: a default constructor an overloaded constructor that takes two arguments. This first argument will be a String. The second argument will be an int. The Kitty class must have the following public methods: a method named getName. This method will take no arguments. This method will return a String. a method named setName. This method will take one String argument. This method will not return anything. a method named getAge. This method will take no arguments. This method will return a int. a method named setAge. This method will take one int argument. This method will not return anything. a method named meow. this method will take no arguments, and will return a String Other Details The default constructor should initialize the Kitty object with the name "Kitty", and an age of 0. The overloaded constructor should initialize the object's name and age with the values passed in to the parameter variables. The getName method should simply return the value stored in the object's name variable. The setName method should assign the value passed in as an argument, to the object's name variable. The getAge method should simply return the value currently stored in the object's age variable. The setAge method should store the value passed in as an argument in the object's age variable. the meow method will return (not print) a String with the Kitty object's name and age. For example, given a Kitty object with the name "Fifi" and the age 3, the meow method would return the following String: 3 year old Fifi says 'Meow!'

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Based on the information from the two images heres how to solve the problem of manipulating points u... View full answer

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 Programming Questions!