Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C# Programming: Can anyone help me what else I'm doing wrong with this step? LetterDemo.cs 0/1 passed Step 2 4 static void MainO) Unit Test
C# Programming:
Can anyone help me what else I'm doing wrong with this step?
LetterDemo.cs 0/1 passed Step 2 4 static void MainO) Unit Test Next, include a ToString) method that overrides the Object class's ToString) method and returns a string that contains the name of the class (using GetType()) and the Letter 's data field values. Letter letteri new Letter) Letter1.name"nSender: Letter1.date("nDate: April 17, 2018; FAILED: Letter Tostring override BUILD STATUS Bulld Falled CertifiedLetter track new CertifiedLetter; BUILD OUTPUT Create a child class named 12 13 Write("Your letter has been received.") Write("n"); CertifiedLetter that includes an auto- implemented property TrackingNumber (of type string ) that holds a tracking number for the letter Conpilation fatled: 2 error(s), e warnings Write(letter1); Write("n"); Write( Tracking nurber:+ track.GetHashCode)); Write(n") CodevolveTestcb@6aecd.cs(11,15): error CS1061: Type Letter' does not contain a definition for Name and no extension nethod "Nane' of type Letter' could be found. Are you nissing an assembly reference? LetterDeno.cs(22,7): (Location of the synbol related to previous error) CodevolveTestcb@6aecd.cs(12,15): error CS1061: Type Letter' does not contain a definition for "Date' and no extension nethod ?Date' of type 'Letter' could be found. Are you nissing an assembly reference? LetterDeno.cs (22,7): (Locatton of the synbol related to previous error) 16 17 18 19 28 21 22 class Letter GRADING As you complete the steps above, you can use the Test button to check if the lab tests are passing. Once you are satisfied with t he results, use the Grade button to save your public string nane (get; set;) public string date (get; set;) 24 25 26 27 28 29 38 31 score. public override string ToString() return (GetType) +":this.nanethis.date); TEST CONTENTS 33 class CertifiedLetter Letter [TestFixture] public class Testletter f 35 public string tracking [get; setStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started