From essays to dissertations, we have experts for all of your assignments!

dot
  • 1.provide your instructions
  • 2.choose an expert in your field
  • 3.track the order progress

Horse Class Homework

Create a base Class Called Horses with the following properties
Name, Breed, Gender, Weight, Hands

Create a method in the horse class called CalculateValue
Value = Weight * 1.5

Create a derived class called RaceHourse. Add the following Properties
Mile_Time
Winnings

Create a function in the RaceHourse class called CalculateValue
Value = Weight*2 + Winnings

Create a derived class called WorkHourse. Add the following Property
Pull_Amount

In the Main form add the following instance of a Horse and display the information in the appropriate textboxes when Display Horse Information button is clicked
Name: Daisy, Breed: Pony, Gender: Female, Weight: 2000, Hands: 15

In the Main form add the following instance of a Race Horse and display the information in the appropriate textboxes when Display Race HorseInformation button is clicked
Name: Speedy, Breed: Thoroughbred, Gender: Male, Weight: 2100 Hands: 16, Mile Time: 2.75
Winnings: 1200000

In the Main form add the following instance of a Work Horse and display the information in the appropriate textboxes when Display Workhorse Information button is clicked
Name: Mongo, Breed: Draft Horse, Gender: Male, Weight: 2600, Hands: 18, Pull Weight: 3450

You can leave a response, or trackback from your own site.

Leave a Reply

Powered by WordPress | Designed by: Premium WordPress Themes | Thanks to Themes Gallery, Bromoney and Wordpress Themes