Mailinglist Archive: opensuse-programming (98 mails)

< Previous Next >
C++:Can one constructor call another from the same object?
  • From: "Steven T. Hatton" <hattons@xxxxxxxxxxxxxxxxxx>
  • Date: Fri, 27 Feb 2004 06:55:29 -0500
  • Message-id: <200402270655.39093.hattons@xxxxxxxxxxxxxxxxxx>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

In Java it's quite common to call one constructor from another one in the same
objects. Can that be done in C++? Is the same kind of situation handled in
C++ with default values for arguments to the constructor rather than having
two different constructors?

STH
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQFAPzA5wX61+IL0QsMRAjcEAKDqp/Hqt9NjnML+FNhTQ7q+Ps2iGwCfTLgV
lChiEZouVk+/GxAcOR6kI9M=
=ubT3
-----END PGP SIGNATURE-----

< Previous Next >
Follow Ups