Create a job class using the given properties

Assignment Help DOT NET Programming
Reference no: EM132193441

Question: Create a Job class that has 3 properties: a job number, estimated hours, and price for the job. You need to use an auto-implemented property for the job number, and provide get and set accessors for estimated hours. The price field value is calculated as estimated hours times $45 whenever the hours values is set, and the Price property is read-only. Create a constructor that requires parameters for job number and estimated hours only. Also, include a ToString()method that overrides the Object class's ToString() method and returns a string that contains the class name (using GetType()) and the job's data field values.

The Job class has a child class named RushJob that includes an auto-implemented property, which holds an additional charge for the job. For the RushJob class, you need to create a constructor that accepts job number, estimated hours, and additional charge. Also, override the Object class's ToString() method and return a string that contains the class name and all data field values, as well as the total price (i.e., price + additional charge).

Finally, create an application class named JobDemo that instantiates one Job object and one RushJobobject. Then call ToString() method and display the info of each object on the screen.

Reference no: EM132193441

Questions Cloud

Perform an up-front and on-going cost comparison : You are the IT manager of a start-up company. Your team has recently built a new Web service that requires a hosting environment comprised of multiple servers.
Differentiate escape-force or foster change strategies : Is labor law more important in the public or private sector? Differentiate escape, force or foster change strategies.
Discuss the significance of professional development : Summarize the four messages outlined in the IOM report and explain why these are significant to nursing practice - Explain why it is important that a nurses
Artificial intelligence to become too powerful to control : Do you think it is possible for artificial intelligence to become too powerful to control?
Create a job class using the given properties : Create a Job class that has 3 properties: a job number, estimated hours, and price for the job. You need to use an auto-implemented property for the job number.
Describe desirable cultural patterns of the environment : Describe desirable cultural patterns of the environment that interest you. Discuss whether the culture is homogenized or a hybrid culture.
Trends in the evaluation of company strategy : Why is it important to look at trends in the evaluation of company strategy?
Prepare paper on energy conservation : Prepare paper on Energy Conservation - you are using an online reference, the information must be from a reputable source that has authority on the subject
New position in advertising was created for vicki talley : Intellectual Property A new position in advertising was created for Vicki Talley, the niece of Jabil’s CEO. Did Talley violate intellectual property laws?

Reviews

Write a Review

DOT NET Programming Questions & Answers

  Develop web services based application

Develop and test a Web services based application that meets the requirements applying SOA design principles.

  Design style elements in asp

Add drop down lists for modifying the different style elements for the label element that displays the time

  Create a shopping cart in asp

The users will use a browser to access the on-line store. The web server software for the production web server is Windows 2003 Server /IIS6.

  Inventory management system in c# application

Inventory management system in c# application

  Using .net resources to teach .net

This project will use the .NET framework to produce a set of materials to demonstrate the fundamental principles of .NET. Ideally it should demonstrate some of the principles of the framework e.g. interoperability.

  Prepare a marymount faculty site

Prepare a Marymount faculty site

  Blinky lights

Analysis proving that your code blinks the LEDs at the specified rates.

  Prepare a web application

Prepare a web application that will be used to keep track of patients registering in a hospital.

  Implementing the insurance management system

Implementing the Insurance Management System and implementation of Components as Web Services.

  Describe the characteristics of visual studio 2005

Describe the characteristics of Visual Studio 2005 Visual Studio.Net is a suite of products that includes 4 main languages. Name these languages and outline their use in industries

  What is a connectionstring

What is a ConnectionString. Give a suitable example to illustrate the various part of a ConnectionString

  Prepare a web application for internet service provider

Prepare a Web application and write the code also event planning document base. This web application allows the user to sign up for an Internet service provider for home connectivity.

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