Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Lab instructions I have provided the implementation for the Mammal abstract class, the Dog and Rabbit species, and the Netherlands Dwarf Rabbit subspecies. Each provided

image text in transcribed
Lab instructions I have provided the implementation for the Mammal abstract class, the Dog and Rabbit species, and the Netherlands Dwarf Rabbit subspecies. Each provided class also contains tests verifying the functionality. In this lab you will specify a subspecies for the Dog class, and write tests for the class that you create. - Go to Module 5 in D2L and download AnimalLabzip - Unzip the file and open the solution in Visual Studio - Build the solution and verify all tests pass - Implement a subclass of Dog for a specific subspecies (such as BassetHound, BorderTerrier, etc) - Override GetSound with the specific sound you think that dog makes - Override GetAverageRunSpeedinMilesPerHour with your estimate of how fast the dog runs - Write tests that cover your new class - Add two tests to the Vetcheckuprests class to make sure that you are able to check the new subspecies you created for a fever - The solution should build and the tests should pass - Fill in the below questions - Complete the Microsoft Learn Tutorial. Indude a screenshot of the completion screen in your submission. - Upload your completed solution with answers to the questions as a single zip file Lab Questions 1/2 README md 216/2023 1. Why could no unit tests be written for the Mammal class specifically? 2. Why did no changes need to be made to use the Vetcheckup. HasFever function for your newly created subspecies? 3. The Rabbit class invokes the constructor of the Mammal base class. What is the relevant code snippet that calls the Mammal Constructor? 4. What is the keyword that allows the GetAverageRunSpeedinMillesperHoun function to be overriden by child classes? 5. What is the difference between a decimal and double type

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Database Relational Model A Retrospective Review And Analysis

Authors: C. J. Date

1st Edition

0201612941, 978-0201612943

More Books

Students also viewed these Databases questions

Question

ermitted daily intake for saccharin by fao and WHO

Answered: 1 week ago