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

  Obstacles that project managers

1. What are some of the obstacles that project managers need to overcome when developing a budget? 2. Illustrate how a balance sheet, income statement, and cash flow statement work together in planning the financial aspects of a project.

  Evaluate the various stakeholder interests

Evaluate the various stakeholder interests and resource constraints. What strategies did you employ to balance these different interests and constraints?

  Explaining awareness of cognitive factors

How can an awareness of one's cognitive factors and biases help a leader improve his/her ability to take the right risks for the right reasons and to innovate the risks appropriately?

  Company vision-mission and objectives

1. What are the company's vision/mission and objectives? 2. Corporate strategy and business (or competitive) strategy What have been the key elements of the company's corporate strategy up until the time of the case? What is the company's business..

  Meeting human resource requirements

1. Given the ideas presented about Apple's strategy, what HR actions would be most suitable for supporting that strategy? 2. What challenges would you expect to be most significant for Apple's HR staff in meeting these human resource requirements?

  Industry analysiswould an industry analysis be primarily

industry analysiswould an industry analysis be primarily concerned with the task environment sociocultural environment

  Models of organization culture structure

models of organization culture structure processescontrolcan you propose a model of organizational culture structure

  New workplace facing managers today

What are the four career issues in the new workplace facing managers today?

  Define the term and describe how it relates to reasoning

Define the term and describe how it relates to reasoning and critical thinking skills. Discuss how the term may be actually practical in your personal or professional life by citing a tangible example of your new term in use.

  Buy-in for and feedback on the project plan

Explain how you would work with stakeholders to ensure buy-in for and feedback on the project plan?

  Business uses technology to publicize financial performance

Explain how the business uses technology to publicize its financial performance. For example, does it use the Internet to provide information about its financial performance?

  Marketers to implement with regards to seo

That is, if you were a SEO consultant for a small business owner, what three tips would you insist that the entrepreneur immediately change on his website?

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