Am I doing this right?
Hello, this assignment is confusing me very much, the basis for it has been done but I don't know if I have a certain section done correctly... This here is the overview
![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/1237607654856196187/image.png)
11 Replies
![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/1237607844908499034/image.png)
![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/1237608193061031966/image.png)
These are the instructions:
![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/1237608469654147122/image.png)
![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/1237608659467632670/image.png)
This is what has been done so far, I'm wondering if I am on the right path concerning the class TimeSheetEntry.
Especially where I have the days of the weeks listed
Is the TimeSheetEntry good so far or am I way off?
a few sidenotes, generally I don't use manual set/get methods, just use autoproperties
and second, the
TimeSheetEntry
looks a bit odd considering the user will input their daily hours every day. Edit: nevermind, assignment mentions "weekly"
I just shuffled through the assignment, but it feels odd to input every day of the week when you're inputting on Monday for exampleI don't know what autoproperties are, I hardly understand get/set methods so I'm just gonna stick to what I'm familiar with
So should I put things like "Week 1" instead?
Auto-Implemented Properties - C# Programming Guide - C#
For an auto-implemented property in C#, the compiler creates a private, anonymous backing field accessed only through get and set accessors of the property.
and as such, no
GetName
/ SetName
is needed as you can just reference the Name
itself
the current implementation is ok as isOk thank you