(Answered)-Create an additional class: Create a class of your choice. Your - (2025 Updated Original AI-Free Solution
Question
- Create an additional class: Create a class of your choice. Your programmer-defined class will have at a minimum two (2) instance variables and one (1) method. You will demonstrate your understanding of encapsulation by declaring the instance variables as private and by creating accessors and mutators for each instance variable.
- Constructor: You will implement at least one constructor that initializes all instance variables. Document your code.
Final Project Milestone Three: Programmer-Defined Class
You will create a Virtual World application as your final project. This Virtual World will have
several objects including a MyClone object and another object of your choice. It would be an
excellent idea to review the Final Project Guidelines at this time. For this Third Final Project
Milestone, you will finish development of your MyClone class and create another class of your
choice.
In Module Two, you started development of the MyClone class. You will continue to develop the
MyClone class by adding accessor methods, mutator methods, and an introduction() method. The
introduction() method will introduce yourself to the virtual world by displaying a greeting, your
first and last name, and anything else you would want to say.
You will also create another class of your choice. Your programmer-defined class should have at
a minimum two instance variables and one method. The instance variables and method should be
representative of the data and behavior that objects of this class will have. You will demonstrate
your understanding of encapsulation by declaring the instance varibales as private and by
creating accessors and mutatora for each instance variable. You should have at least one
constructor created that initializes all instance variables. Document your code.
Submit your .class and .java files as one zipped folder.
Guidelines for Final Project Milestone Three (above)
Your final project for this course is the creation of a Virtual World Java application that results in
a virtual world, complete with an object that will act as a human clone. (See the Final Project
Document for more information.) You created the initial version of your MyClone class in
Milestone One and Java code that created an Array of String messages in Milestone Two. In this
milestone, due in Module Seven, you will finish your MyClone class and create another class of
your choice.
The following critical elements will be addressed in this submission:
1. MyClone accessors and mutators: You will demonstrate your understanding of
encapsulation by creating accessor and mutator methods for all instance variables of the
MyClone class.
2. MyClone constructor: You should have at least one constructor created that initializes
all instance variables.
3. MyClone method introduction(): Create an introduction() method for your MyClone
class. The introduction() method will introduce you to the virtual world by displaying a
greeting, your first and last name, and anything else you would want to say.
Partial class diagram for the MyClone object:
MyClone
-firstName
-lastName
introduction()
4. Create an additional class: Create a class of your choice. Your programmer-defined
class will have at a minimum two (2) instance variables and one (1) method. You will
demonstrate your understanding of encapsulation by declaring the instance variables as
private and by creating accessors and mutators for each instance variable.
5. Constructor: You will implement at least one constructor that initializes all instance
variables. Document your code.