7 printf("x is %d\n", x);
11 printf("x is '%s'\n", x);
16 printf ("Foo constructor called\n");
19 Foo::Foo (const Foo &) {
21 printf ("Foo copy constructor called\n");
24 void Foo::bar (int x) {
25 printf ("Foo::bar(x) method ... \n");
26 printf("x is %d\n", x);
29 void Foo::bar (char *s, int y) {
30 printf ("Foo::bar(s,y) method ... \n");
31 printf ("s is '%s'\n", s);
32 printf ("y is %d\n", y);