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:
parent
b65ba2a8db
commit
2d518c638c
22 changed files with 802 additions and 18 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue