1
General chat / Re: It's been 10 years!
« on: February 15, 2011 »
Happy birthday
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

class blah;the destructor will be called when the block of code i delcared my istance of the class ends but if i use:class *blah = new blah();the destructor is called when i use the line:delete blah;class blah = new blah()class blah;class *blah = new blah();
delete blah;Typically examples of object-oriented code take up more lines then their procedural counterparts, but this is because those examples are often only a couple of hundred or a thousand lines long. Once you get over 5,000 lines (which is pretty small project) I find object-oriented code really starts to scale a lot better then procedural code