strikeouts27
Can someone tell me if I am on the right track?
Can someone tell me if I am on the right track with these instructions?
Create an application class named LetterDemo that instantiates objects of two classes named Letter and CertifiedLetter and that demonstrates all their methods.
The classes are used by a company to keep track of letters they mail to clients. The Letter class includes auto-implemented properties for the Name of the recipient and the Date mailed (stored as strings).
Create a child class named CertifiedLetter that includes an auto-implemented property TrackingNumber (of type string) that holds a tracking number for the letter.
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 respective class's data field values. Use default, empty constructor for both classes.
5 replies
Trying to install C# need help troubleshooting
I am trying to install C# on my windows machine using the following instructions.
https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/sdk-8.0.203-windows-x64-installer
I have downloaded the installer and have attempted step2 to verify the installation. When I run the commands I get the following error message
C:\Users\Andrew>mkdir -p $HOME/dotnet && tar zxf dotnet-sdk-8.0.203-win-x64.exe -C $HOME/dotnet
The syntax of the command is incorrect.
C:\Users\Andrew>export DOTNET_ROOT=$HOME/dotnet
'export' is not recognized as an internal or external command,
operable program or batch file.
16 replies