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

  Caselet on michael porter’s value chain management

The assignment in management is a two part assignment dealing 1.Theory of function of management. 2. Operations and Controlling.

  Mountain man brewing company

Mountain Man Brewing, a family owned business where Chris Prangel, the son of the president joins. Due to increase in the preference for light beer drinkers, Chris Prangel wants to introduce light beer version in Mountain Man. An analysis into the la..

  Mountain man brewing company

Mountain Man Brewing, a family owned business where Chris Prangel, the son of the president joins. An analysis into the launch of Mountain Man Light over the present Mountain Man Lager.

  Analysis of the case using the doing ethics technique

Analysis of the case using the Doing Ethics Technique (DET). Analysis of the ethical issue(s) from the perspective of an ICT professional, using the ACS Code of  Conduct and properly relating clauses from the ACS Code of Conduct to the ethical issue.

  Affiliations and partnerships

Affiliations and partnerships are frequently used to reach a larger local audience? Which options stand to avail for the Hotel manager and what problems do these pose.

  Innovation-friendly regulations

What influence (if any) can organizations exercise to encourage ‘innovation-friendly' regulations?

  Effect of regional and corporate cultural issues

Present your findings as a group powerpoint with an audio file. In addition individually write up your own conclusions as to the effects of regional cultural issues on the corporate organisational culture of this multinational company as it conducts ..

  Structure of business plan

This assignment shows a structure of business plan. The task is to write a business plane about a Diet Shop.

  Identify the purposes of different types of organisations

Identify the purposes of different types of organisations.

  Entrepreneur case study for analysis

Entrepreneur Case Study for Analysis. Analyze Robin Wolaner's suitability to be an entrepreneur

  Forecasting and business analysis

This problem requires you to apply your cross-sectional analysis skills to a real cross-sectional data set with the goal of answering a specific research question.

  Educational instructional leadership

Prepare a major handout on the key principles of instructional leadership

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