Welcome, Guest. Please login or register.

Author Topic: question about C++ constructors  (Read 23019 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Casper

  • Full Member
  • ***
  • Join Date: Feb 2002
  • Posts: 214
    • Show all replies
Re: question about C++ constructors
« on: January 23, 2003, 10:07:44 PM »
There is a saying when it comes to good programming: Allocate late, release early, i.e. you should allocate resources when you need them and release them as soon as possible.  You should not allocate stuff in the constructor unless you absolutely have to.