|
Ball Class Reference#include <Ball394.h>
Inheritance diagram for Ball:
[legend]List of all members.
Detailed Description
Definition at line 19 of file Ball394.h.
|
Public Member Functions |
| Ball () |
| Ball (double initialRadius, const string &initialName) |
void | getName (string ¤tName) const |
void | setName (const string &newName) |
void | resetBall (double newRadius, const string &newName) |
void | displayStatistics () const |
Private Attributes |
string | theName |
Constructor & Destructor Documentation
Ball::Ball |
( |
double |
initialRadius, |
|
|
const string & |
initialName |
|
) |
|
|
|
Creates a ball with radius initialRadius and name initialName.
Definition at line 20 of file Ball.cpp.
References setName(). |
Member Function Documentation
void Ball::getName |
( |
string & |
currentName |
) |
const |
|
|
Determines the name of a ball.
Definition at line 27 of file Ball.cpp.
References theName. |
void Ball::setName |
( |
const string & |
newName |
) |
|
|
void Ball::resetBall |
( |
double |
newRadius, |
|
|
const string & |
newName |
|
) |
|
|
void Ball::displayStatistics |
( |
|
) |
const |
|
Member Data Documentation
The documentation for this class was generated from the following files:
|