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 place an order similar to this with us. You are assured of an authentic custom paper delivered within the given deadline besides our 24/7 customer support all through.
Latest completed orders:
# | Title | Academic Level | Subject Area | # of Pages | Paper Urgency |
---|---|---|---|---|---|