7 kyu
Playing with cubes III
464Jotha
Description:
Hey Cube-Lovers!
Now we want to provide some more information about cubes. First, we implement two new properties: Volume and Surface.
Additional to this task we are going to refactor our code, so it will be bit more like professional C# code! You change the variable Side to a public property and remove the 'Getter' and 'Setter'.
The properties Volume and Surface should each have a public get-accessor and private set-accessor. Their correct mathematical values should be set in the cubes constructor and if Side's values is changed.
This MSDN site should provide some help:
https://msdn.microsoft.com/en-us/library/w86s7x04(v=VS.120).aspx
Mathematics
Refactoring
Similar Kata:
Stats:
Created | Aug 5, 2015 |
Published | Aug 5, 2015 |
Warriors Trained | 1138 |
Total Skips | 82 |
Total Code Submissions | 5890 |
Total Times Completed | 464 |
C# Completions | 464 |
Total Stars | 16 |
% of votes with a positive feedback rating | 83% of 71 |
Total "Very Satisfied" Votes | 53 |
Total "Somewhat Satisfied" Votes | 12 |
Total "Not Satisfied" Votes | 6 |