Convert your V3 object class from the Default Constructors assignment to V8 implementation and client classes and
Fantastic news! We've Found the answer you've been seeking!
Question:
Convert your V3 object class from the Default Constructors assignment to V8 implementation and client classes and instantiate multiple objects.
05.08 Assignment project in the Mod05 Assignments folder.
- In the 05.08 Assignment project, make V8 class for your object and a V8Tester class.
- Copy your V3 object class and paste it into the appropriate class shell you just created. Change any statements that mention V3 to V8.
- Compile the project to make sure no errors were introduced and run the program to verify that it still works. Fix any errors that show up before moving on to the next step.
- In the object implementation class:
- Declare private instance variables
- Define an overloaded constructor (a loaded constructor with parameters)
- Initialize the instance variables
- Define at least one overloaded method.
- Add getter and setter methods for each instance variable
- Add any methods to your object you would like.
- In the client class:
- Instantiate at least three instances of your V8 object
- Use the default constructor at least once
- Use at least one loaded constructor (with parameters)
- Do not use variables, just enter the values in the parameter list
- Invoke the necessary methods to calculate or manipulate data for the objects
- Use each overloaded method at least once
- Use the getter methods when printing objects created with the loaded constructor
- Instantiate at least three instances of your V8 object
- Print the results in a user-friendly format. (Hint: use the \t escape character)
- Be sure to document each section of the code.
Related Book For
Posted Date: