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

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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