Jump to content

Constructors and Destructors

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
Patrick

Patrick

    Programmer

  • Members
  • PipPipPipPip
  • 101 posts
Is there any advantage of using Constructors or Destrcutors when the programming code is very large in size ? Is it necessay that destructors should be always defined for a defined constructor ?

#2
v0id

v0id

    Retired

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,936 posts
It depends on what you're doing.
It's not necessary to have a destructor, just because you've a constructor. Usually the destructor is used for freeing allocated memory, and such.