7 kyu

Playing with cubes III

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

Stats:

CreatedAug 5, 2015
PublishedAug 5, 2015
Warriors Trained1138
Total Skips82
Total Code Submissions5890
Total Times Completed464
C# Completions464
Total Stars16
% of votes with a positive feedback rating83% of 71
Total "Very Satisfied" Votes53
Total "Somewhat Satisfied" Votes12
Total "Not Satisfied" Votes6
Ad
Contributors
  • Jotha Avatar
  • g964 Avatar
  • hobovsky Avatar
Ad