pjc@PacBell.COM (Paul Condie) (01/04/90)
Is it possible for a constructor to call another constructor of the same class? What I would like to do is something like this: class test { int x; public: test (); test (int); test (int, int); ... }; test::test() { x = 5; // or whatever } test::test (int a) { // do the code in the first constructor here - call 1st constructor ? // do some additional stuff in this constructor } test::test (int a, int b) { // do the code in the second/first constructor here - call 2nd constructor ? // do some additional stuff in this constructor }