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

@ -21,9 +21,9 @@ public class runme {
Square s = new Square(10);
System.out.println( " Created square " + s );
// ----- Access a static member of a nested class -----
// ----- Access a static member -----
System.out.println( "\nA total of " + Shape.Counter.getNshapes() + " shapes were created" );
System.out.println( "\nA total of " + Shape.getNshapes() + " shapes were created" );
// ----- Member data access -----
@ -64,7 +64,7 @@ public class runme {
c.delete();
s.delete();
System.out.println( Shape.Counter.getNshapes() + " shapes remain" );
System.out.println( Shape.getNshapes() + " shapes remain" );
System.out.println( "Goodbye" );
}
}