Create instance variables

Assignment Help Business Management
Reference no: EM132239902

1.) I have to make a class named after any favorite object in the whole world

2.) Then I have to Create Instance Variables (fields) 

  • Then I have to make at least 3 private instance fields (attributes) for my class
  • I must use at least 3 different data types for my fields

3. Then I have to create getter (accessor) and setter (mutator) methods  

  • Then I must make a getter (accessor) method for each of my instance variables
  • Then I have to make a setter (mutator) method for each of my instance variables 

4. Next, was to make a Method to display my data

  • Then, I have to make a method called display, that simply prints out the values of all instance variables of my object

5. After, that I must create 2 additional methods that my object should normally have, and the methods should print something out and also modify the object in some way. Then, I have to test out both of these method for at least one of my objects. 

6. Then, I have to create 2 Constructors

  • I then, have to make a default constructor (no parameters) that assigns all my instance variables to default values 
  • Next, I must make a parameterized constructor that takes all instance variables as parameters, and sets the instance variables to the values provided by the parameters 

7. Then, I have to test my program

  • After, that I must make a class called Demo.java. This class will contain my main method
  • Then, I have to create 2 instances of my class by using the default constructor. 
  • I then have to call all my objects set methods to assign values to my object
  • Next, I have to create 2 instances of your class by using the parameterized constructor 

8.) Then, finally I have to put all of my objects in an ArrayList, loop through the array, and call the display method on each object

Reference no: EM132239902

Questions Cloud

Successful business on business world/consumers-society : What is the impact of a successful business on business world/consumers/society?
Describe the attack and how organizations attempt to prevent : Select a common attack, describe the attack and how organizations attempt to prevent the attack from happening, and explain how they detect and respond
Type of device do you use for backing up files : How often do you back up critical data files such as homework files? What type of device do you use for backing up files?
Employee at a tech company that provides technical support : You are a new employee at a tech company that provides technical support.
Create instance variables : 1.) I have to make a class named after any favorite object in the whole world
Computer investigations and forensics analysis : You have been hired to perform computer investigations and forensics analysis for a company.
Describe the stakeholder theory forarte breakfast cereal : Describe the stakeholder theory foraRTE breakfast cereal firm. Who are the major external stakeholders? Who are the major internal stakeholders?
Are some computer systems considered services : Are some computer systems considered services even though they are not web based?
Can you give me three leadership practices : Can you give me three leadership practices that are applicable to the C200 Class for WGU?

Reviews

Write a Review

Business Management Questions & Answers

  Managerial decision making

Managerial Decision Making - Show how bias has blocked your ability to make a rational decision

  Interesting and well-paying jobs in fashion

What are three emerging markets for job seekers looking for interesting and well-paying jobs in fashion?

  Consider the various types of businesses

Consider the various types of businesses below. Select three, and determine what approaches you would use to search for innovation opportunities for each business type

  Describe the financial goals of the firm

1. Describe the financial goals of the firm. 2. Demonstrate an understanding of the principles that form the foundation of financial management. 3. Evaluate financial statements including critical financial ratios.

  State of labor unions

What is the current "state of labor unions" in the United States?

  Response to claims of discrimination

Based on your readings and additional research, develop a position statement, including the following:

  What are the three traditional training methods

What are the three traditional training methods? Detail the advantages and disadvantages of each in regard to learning. Need a answer for this question thanks

  Presentation of the facts surrounding the case

You enter the hours employees work into the system, and from there, paychecks are generated. you have control over your hours too.

  Process batches and transfer batches

The theory of constraints distinguishes between process batches and transfer batches. It also recommends that process batches vary according to the economics

  Kinds of damage a company

List and assess at least three kinds of damage a company could suffer when the integrity of a program or company data are compromised.

  Cost benefit analysis of cash management city farm insurance

Cost benefit examine of cash management City Farm Insurance has collection centers across the nation to speed up collections. The firm also makes its disbursements from remote disbursement centers

  Design after extensive prototyping

A 3D printer company decided on new product features and design after extensive prototyping for its new printer. The company's marketing team created

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd