Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Business Economics Expert

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.

Business Economics, Economics

  • Category:- Business Economics
  • Reference No.:- M92330110
  • Price:- $10

Priced at Now at $10, Verified Solution

Have any Question?


Related Questions in Business Economics

What are the differences between the classic marx approach

What are the differences between the classic Marx approach to capitalist globalization and the "world systems theory"?

Sally purchases hardwood lumber for a custom

Sally purchases hardwood lumber for a custom furniture-building shop. She uses three suppliers, Northern Hardwoods, Mountain Top, and Spring Valley. Lumber is classi ed as either clear or has defects. Sally estimates tha ...

Youve entered a contract to purchase a new house and the

You've entered a contract to purchase a new house, and the closing is scheduled for next week. It's typical for some last-minute bargaining to occur at the closing table, where sellers often try to tack on extra fees. Yo ...

Many manufacturing problems involve the accurate matching

Many manufacturing problems involve the accurate matching of machine parts, such as shafts, that fit into a valve hole. A particular design requires a shaft with a diameter of  22.000  mm, but shafts with diameters betwe ...

Wendys fast-food restaurant sells hamburgers and chicken

Wendy's fast-food restaurant sells hamburgers and chicken sandwiches. On a typical weekday, the demand for hamburgers is normally distributed with a mean of 500 and standard deviation of 90 and the demand for chicken san ...

The local grocery store sells potatoes in 5-pound bags

The local grocery store sells potatoes in 5-pound bags. Because potatoes come in unpredictable sizes, it is almost impossible to get a bag that weighs exactly 5 lbs. Therefore, the store advertises that the bags average ...

Identify a recent mergeracquisition and use it to and

Identify a recent merger/acquisition and use it to and explain: was the merger/acquisition predominately about gaining economies of scale or economies scope?

Sally purchases hardwood lumber for a custom

Sally purchases hardwood lumber for a custom furniture-building shop. She uses three suppliers, Northern Hardwoods, Mountain Top, and Spring Valley. Lumber is classi ed as either clear or has defects. Sally estimates tha ...

Looking for detailed solution for this questionconsider

Looking for detailed solution for this question. Consider three Firms out of a competitive industry. They have the following technologies: C1(y) = y^2 + 4, C2(y) = y^2 + y + 4, and C3(y) = y^2 + 2y + 4 respectively. a) S ...

What is the supply curve how do you apply the law of supply

What is the supply curve, how do you apply the law of supply in economics?

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As