Describe relationship

Assignment Help Basic Computer Science
Reference no: EM131524483

The below from the discussion post. This need to respond in 4 to 6 sentences. This need to reply to the author. This is from software development distribute system. Need help to post.

When it comes to classes and objects I have heard and used many different ways to describe their relationship. Choosing which one to use usually depends on who I am talking to and what I believe they would be best to help them understand the two. Having an automotive background one I often go to is the idea that you can have an automobile class. Now there are many different automobiles out there like cars and trucks. These can actually be broken down further into sports cars, sedans, pick-up trucks, semi-trucks, etc. but I'll keep it simple for this discussion. If you have an automobile class, you could have a car object and then another truck object. Each share the properties of the automobile class such as having four wheels and uses gasoline, but each has their own object properties such as the truck having two doors and a cargo bed while the car has four doors and a smaller cargo trunk.

This simplified concept of cars and trucks both being kinds of automobiles with shared properties and individual properties helps to explain the relationship of classes and objects. In languages such as Java this concept can be expanded on with the idea that an object of a class can also be a class to another object. Using our automobile example again, the class automobile has an object truck, their shared properties include four wheels and a gas tank its individual properties include doors and a truck bed. Now the object truck acting as a class has another object four wheel drive truck. The four wheel drive truck now has all the properties of automobile and truck, but also has its own properties of having a transfer case. But this gets more into the idea of inheritance rather than just classes and objects.

If you look at the example above, a class is the basic framework that all automobiles have in common, and each object is the specific kind of automobile with its own individual properties as well as those included from the class itself. Now not everyone would get this particular analogy, but those who have an automotive or mechanical background probably would. That is why I also state choosing which analogy to use depends on who I am talking to. But all analogies regarding classes and objects are really trying to help people visualize the concept of a hierarchy in programming. You have the base class of all objects of a particular type, then you have objects that are the different kinds of that base class.

Reference no: EM131524483

Questions Cloud

What change effort have been undertaken at your organization : What change efforts have been undertaken at your organization? Which have worked? Which readings on change make most sense to you? Why?
Design a 3nf logical model : Design a 3NF Logical Model and Design a Dimensional Model for the following:
Examine your individual essential elements of leadership : Write a 700- to 1,050-word summary in which you articulate elements of leadership. Examine your individual, essential elements of leadership and management.
Discuss about the cyberpunk fiction and film : Discuss about the Cyberpunk Fiction and Film.What does it feel like for the characters? What does it feel like for the reader?
Describe relationship : When it comes to classes and objects I have heard and used many different ways to describe their relationship.
Identify the internal and external influence on organization : Identify the internal and external influences on the organization that may have caused the shift in leadership style. Be sure to explain your choices.
Knowledge in the past : How have you applied this knowledge in the past, or how do you think you will apply it in the future. Answer in a few sentences.
Should pierre be willing to increase the option offers : Pierre, a book broker, is about to sign a contract to buy the rights to a book about twin teenage computer-security sleuths titled Nan and Dan vs. the Monika.
Explanation of the benefits of actions : You just became the lead security person at a small company. Assume normal setup, e-mail, company Web site, internal servers, and so forth.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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