Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int CUBE = 4; // A 4x4x4 cube
- struct StockTickData
- {
- string Symbol;
- decimal Price;
- DateTime When;
- string Where;
- }
- class cube{
- private size;
- public set_size(value){
- if (value < 0){
- value = -value; // makes sure we have a positive size
- }
- this.size = value
- }
- public get_size(){
- return this.size;
- }
- public get_volume()
- {
- return this.size*this.size*this.size
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement