|
Classes and Objects in C++: An Introduction
for Java Programmers |
|
Prof. David Bernstein
|
| Computer Science Department |
| bernstdh@jmu.edu |
explicit
Shopper in a "Shopping Club"
Shopper(int accountNumber): purchases(0.00)
Car class with some private
attributes and we have a Garage
class that has an array of Car objects
int Order::lastOrderNumber = 0;
static const int LEFT = 0;
static const int RIGHT = 0;
private attributesprivate methods
ExecutiveShopper in a "Shopping Club"
ExecutiveShopper