Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!think!ames!pacbell!pbhyf!pjc From: pjc@PacBell.COM (Paul Condie) Newsgroups: comp.lang.c++ Subject: constructor help request Message-ID: <6661@pbhyf.PacBell.COM> Date: 3 Jan 90 21:33:18 GMT Organization: Pacific * Bell, San Ramon, CA Lines: 26 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 }