Submit a first version of your myclone class your myclone


Specifications for the first draft of the MyClone class:

Submit a first version of your MyClone class. Your MyClone class should have instance variables firstName and lastName. The firstName and lastName instance variables will hold your first and last names. You will demonstrate your understanding of encapsulation by using the private specifier to restrict access to your instance variables.

Feel free to add additional instance values and methods, but your clone object must have instance variables firstName and lastName. The firstName and lastName instance variables will hold your first and last names. You will demonstrate your understanding of encapsulation by using the private specifier to restrict access to your instance variables.

  1. MyClone Class created using correct Java syntax.
  2. MyClone Class Instance Variables: Include required instance variables and restrict access by using the private specifier.

Data Structure for Message Storage:

  1. Storing the Array: Write an application that uses an Array to store 10messages of type String. You will store this Array with 10 messages of your choosing. For example, a message could be "I love Java the programming language!" or another message could be "I love Java the drink!"
  2. Initializing the Array: You may initialize your Array with the messages or have the user enter the messages. The choice is yours. Your Java code will contain a method called shoutOutCannedMessage() that will loop through the Array to iterate through your entire list and display each message and allow the user to select one. The shoutOutCannedMessage() will return the selected message String.

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Submit a first version of your myclone class your myclone
Reference No:- TGS01478390

Now Priced at $20 (50% Discount)

Recommended (98%)

Rated (4.3/5)