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

  Assignment covers the subsequent eight topics and explore

assignment covers the subsequent eight topics and explore the implementation of memory management processes and

  Build a very straightforward and fully functional machine

Build a very straightforward and fully functional machine learning classifier with the K-Nearest Neighbor (KNN) algorithm. The KNN model will read a set of data specified by the user, decide the appropriate class of the new instance, and finally o..

  Prepare a simple windows calculator in java it must have a

create a simple windows calculator in java. it should have a labeled text field for the user to provide input as well

  World data app

Prepare WorldDataApp project. It implements the NameIndex portion, including creating it in SetupProgram, and searching, viewing and updating it in UserApp program.

  Write ijvm program to multiply two hexadecimal numbers

Write the IJVM program that multiplies two (hexadecimal) numbers. The user inputs the hex numbers and the result is printed out. The program then accepts another pair of numbers.

  How to write and incorporate string

How to write and incorporate string - custom function

  Class named showstudent that instantiates a student object

Write a class named ShowStudent that instantiates a Student object from th eclass and then display all the vlaues associated with the Student. Save as ShowStudent.java

  Write a recursive program to compute the number of ways in

write a recursive program to compute the number of ways in which an integer k can be written as sum each of whose

  Implement your client-server system

A detailed discussion of the methodology you used to implement your client-server system and a concise and detailed design for the client-server system

  Implement a validation plan to get a valid input

You need to implement a validation plan to get a valid input from the user for product code. An input value is considered invalid if: it is not a number at all

  Write java program prints strings given at command line

Write down the program Average.java which just prints strings which it is given at command line, one per line. If nothing is given at command line, print "No arguments".

  Implement a method that compares two rectangles

Implement the compare method of the class RectangleComparator. The method compares two rectangles.

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