1 
2 class myclass {
3   int myint;
4  public:
5   myclass(int x);
6   myclass(void);
7   ~myclass();
8   static int Fis_i(int bar);
9   int Fi_i(int bar);
10   /* Overloaded operators */
11   void* operator new(size_t);
12   void operator delete(void *);
13   /* Unary operation.  */
14   myclass operator++();// Preincrement
15   myclass operator++(int);// Postincrement
16 
17   /* Binary operation.  */
18   myclass operator+(int);
19 
20   /* Assignment */
21   myclass& operator=(const myclass& from);
22   /* Nested classes */
23   class nested {
24   public:
25     nested();
26     ~nested();
27     int Fi_i(int bar);
28   };
29 };
30 
31 class nested {
32  public:
33   nested();
34   ~nested();
35   int Fi_i(int bar);
36 };
37