Provide method that compellingly differentiates the class

Assignment Help JAVA Programming
Reference no: EM131184395

Java- Object-Oriented and Concurrent Programming

Pick one of the following scenarios and

• model using at least 5 classes: one parent, two children, and two grandchildren of one of the child classes.
• Provide at least one field and one method that compellingly differentiates each class from the others.
• Do not include constructors, getters, or setters in your description.

Scenarios- Lots of them spring to mind, but I don't want the list to be too long. In this way, you can compare your ideas with those of other students, and I encourage to consider what other students have posted, you are also encouraged to make suggestions of other's postings and make additional postings updating your own ideas in light of the suggestions by others.

1. An airplane
2. A train
3. An e-commerce company (eg, Amazon)
4. A city government
5. An airline (aspects of an entire company)
6. A government organization (eg, EPA, Defense)

1. NOTE: A general is not a kind of private, nor is a private a kind of general, for example.
2. Also, a general is not a kind of Defense Department
3. THUS: not all hierarchies are class hierarchies!

Note: This problem is NOT asking for a full implementation of these classes - a UML diagram, or similar level of detail, is adequate.

You will find many of the items in the following helpful throughout this class:

• https://sandsduchon.org/duchon/Musings/a/index.html

I would emphasize the following kinds of relationships among classes:

-a

parent/child relationship in a class hierarchy
perhaps better to use the phrase "is a kind of", as in "a Private is a kind of Soldier" or "a SportsCar is a kind of Car"

is-some

a data structure in which all the elements have the same type. 
This is the place where one should use generic classes.
This will not be the case in our project since we have a structure of Cave -> Party -> Creature -> Artifact and Treasure.

has-a

an attribute (field) of one class inside another

has-some

a 1-to-n relationship,
in our case a Party will have may Creatures, and a Creature will have many Artifacts and will also have many Treasures

Reference no: EM131184395

Questions Cloud

Find the electric flux density at a general point p(x, y, z) : What is the polarization vector at a general point P(x, y, z), if space has a dielectric constant ε= 4ε0.
Specific event that could trigger the risk to occur : Risk uncertainty analysis paper (15 assignment grade points). Assume that the University of Phoenix has funded a project to upgrade the online classroom. The paper and UOPX originality report (Turnitin) with similarity index less than 5% must be p..
Describe the five distinct theories : Five approaches to organizational design. Describe the five distinct theories and/or approaches and key elements to: Classical, bureaucratic theories
What do sociologists mean by social construction of reality : What do sociologists mean by the social construction of reality? How has the social construction of reality affected you
Provide method that compellingly differentiates the class : Provide at least one field and one method that compellingly differentiates each class from the others. Do not include constructors, getters, or setters in your description.
Why the scientific method is important in research : Discuss why it is important to learn about research, and why the scientific method is important in research. Really think about the issue and use your own words. Do not site the textbook
Find the electric filed intensity and potential at point p : Electric field and potential of point charge in the presence of conductors and dielectrics. In the spherical geometry in Figure 4.69 find the electric filed intensity and potential at point P.
Describe strategic planning techniques : Describe strategic planning techniques used to formulate alternative strategies designed to achieve stated business goals.
What is the difference between a database and a table : What is the difference between a database and a table? What two conditions must be met before an entity can be classified as a weak entity? Give an example of a weak entity.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Multi-threading concepts

Multi-threading concepts: What is the output of the following program? class Threading{

  Ask the user to enter a positive non-zero integer value.

Write a program which aske the user to Enter a positve non-zero integer value. if the value enterd zero or negative print as error message and end the program; otherwise, use the integer to call a method displayPattern(n) which must display the follo..

  Java programming arrays

Write a Java application program that takes in user input from keyboard and calculate semester grade based on the scores. In this assignment, you are going to rewrite the program, instead of taking keyboard input, you will use dialog box to prompt..

  Write an application to simulate user logon tracking

Keep track of the number of users logged on at any point in time, and display this number in a text box that the user cannot modify. Display appropriate messages when a user successfully logs on or off and appropriate error messages when an action..

  Square matrix of dimension

You are given a square matrix of dimension N. Let this matrix be called A. Your task is to rotate A in clockwise direction byS degrees, where S is angle of rotation. On the matrix, there will be 3 types of operations viz.

  Powerful pain reliever are consumers with headaches

Your target market for the most powerful pain reliever are consumers with HEADACHES. Start with goals and objectives. Do a SWOT. What information is most important for your market? Do some market research.

  What is overloading and what is overriding

What is overloading and what is overriding? Wrtie JAVA code code to explain it.

  Write a mathematical recursive definition

Write a mathematical, recursive definition of p(n) - Prove that your answer to Part a is correct by using mathematical induction.

  Create a java program that performs distributed systems task

Can someone create a Java program that performs the following distributed systems tasks? This should be easy for a Java programmer

  Uml exercise

UML Exercise: Automated Teller Machine (ATM),   1. To allow authorized card holders to make transactions,   Brief Summary of Requirements:

  All your code should be in the main method

Write a Java test program, all your code should be in the main method, that asks the user for two numbers representing an investment value and interest rate

  Determine and print the weekly rate.

Write the Java Statements that retrieve the age of the child and the number of days the child will be at the day care center.

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