ItMayBeAHack OOD Exercises
An exercise in OOD as guided by ItMayBeAHack.com.
Public Member Functions | List of all members
Roulette.Bin Class Reference

A collection of Outcomes to be associated with a bin number in Wheel. More...

Inheritance diagram for Roulette.Bin:

Public Member Functions

 Bin (Outcome outcome, params Outcome[] outcomes)
 Creates a new bin. Requires at least one outcome. More...
 
string ToString (string delim="\n")
 Human-friendly ToString with optional delimiter. More...
 

Detailed Description

A collection of Outcomes to be associated with a bin number in Wheel.

Constructor & Destructor Documentation

Roulette.Bin.Bin ( Outcome  outcome,
params Outcome[]  outcomes 
)

Creates a new bin. Requires at least one outcome.

Parameters
outcomeThe first and required Outcome.
outcomesAdditioanl Outcomes.

Member Function Documentation

string Roulette.Bin.ToString ( string  delim = "\n")

Human-friendly ToString with optional delimiter.

Parameters
delimDelimiter to separate elemtents of this collection. Default is new line.
Returns
Human-friendly string listing the Outcomes in this Bin.

The documentation for this class was generated from the following file: