1 class object { 2 public: ~object()3 virtual ~object() {} 4 }; 5 6 class bar : public object 7 { 8 static bar *method(void); 9 }; 10 11 class quxx : public bar 12 { 13 public: 14 static void method(); 15 }; 16 17 bar* method(void)18 bar::method (void) 19 { 20 quxx::method(); 21 return 0; 22 } 23