Add C++ nested class example

This also reverts the nested class additions to the Java/C# 'class' example
so that the 'class' example remains identical across different language modules
This commit is contained in:
William S Fulton 2013-11-29 07:46:48 +00:00
commit 2d518c638c
22 changed files with 802 additions and 18 deletions

View file

@ -9,7 +9,7 @@ void Shape::move(double dx, double dy) {
y += dy;
}
int Shape::Counter::nshapes = 0;
int Shape::nshapes = 0;
double Circle::area(void) {
return M_PI*radius*radius;