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

  Socket programming modify the translate program and

socket programming modify the translate program and dictionary program. modify the programs to handle multiple user

  The methods getsaleprice and getsaleweight

The program must include five methods: printSale, getSalePrice, getSaleWeight, calcTax, and calcShipping. The method printSale takes no input parameters and has a return type of void; it prints values by by calling the other four methods and computin..

  1write a program that uses joptionpanes to perform the

1.write a program that uses joptionpanes to perform the following stepsmiddotfirst display a welcome message to your

  Assignment on computer memory hacking

Describe what hacking of memory or hacking of RAM means. Examine the common tools that hackers use to hack into memory of computing devices. Detail two (2) real-life examples of such tools in action.

  Develop a reservation system program for specific flights.

develop a reservation system program for specific flights. A customer should be able to select from one of four categories of seats on flights from RDU to any of at least three other destinations. Based on the user input of seat type and destination,..

  Understanding of basic programming concepts

Demonstrate understanding of basic programming concepts by: 1. Constructing a simple flowchart that describes simple logic flow through a program;

  Create a japplet

Create a JApplet that contains a JLabel and JButton. You'll create a JButton that will automatically change font typeface, style, and size when clicked by the user.

  Java code using jframe

Write a Java code using JFrame. This code needs to manipulate 4 shapes(2 rectangles and 2 squares) in a 400x400 JFrame. This needs to manipulate the shapes in 3 different ways, using 3 different methods. One for translating a shape, one for proportio..

  Write a program using an array that will store

Using java programing : Write a program using an array that will store input data. Prompt the user for and read 6 numbers between 70 and 90. Verify the numbers should be greater than 70 and less than 90. If the number is less than

  Develop a graphical user interface based java program

Develop a Java program that can communicate with a real SMTP email server for sending emails. TNE 60003 - introduction to network programming, You program should provide a GUI and can successfully send the SMTP commands to the mail server

  Design a class that can be used to hold information

Implement and design a class that can be used to hold information about a musical note - Prepare a complete java program the default constructor should set a note to a middle C quarter note.

  The class overloaded constructor receives a 2-dim int array

The class overloaded constructor receives a 2-dim int array as a parameter and assigns its values to a private 2-dim int array. Have another method that prints the whole 2-dim table.

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