8 kyu
Playing with cubes II
1,446 of 8,851Jotha
Description:
Hey Codewarrior!
In the previous kata, you have implemented a Cube class, but now we need your help again! I'm talking about constructors. We don't have one. Let's code one (or more) such that one can instantiate an object via it, handling either no arguments or a single integer.
Also we got a problem with negative values. Correct the code so negative values will be switched to positive ones!
The constructor taking no arguments should assign 0 to Cube's Side property.
Fundamentals
Object-oriented Programming
Similar Kata:
Stats:
Created | Aug 4, 2015 |
Published | Aug 4, 2015 |
Warriors Trained | 15652 |
Total Skips | 596 |
Total Code Submissions | 40087 |
Total Times Completed | 8851 |
C# Completions | 1446 |
Python Completions | 3736 |
Ruby Completions | 373 |
JavaScript Completions | 2954 |
TypeScript Completions | 445 |
Java Completions | 246 |
Total Stars | 132 |
% of votes with a positive feedback rating | 82% of 1223 |
Total "Very Satisfied" Votes | 885 |
Total "Somewhat Satisfied" Votes | 238 |
Total "Not Satisfied" Votes | 100 |