🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: csu.cs.200
Article #202

Re: Assig 5, Impl. Note #2 Question

#202
From: Trey Herschede
Date: Wed, 04 Mar 1998 00:00
22 lines
1269 bytes
The constructor and destructor are in the public section. The
constructor is called when an object of that class is instantiated, and
the destructor is called when that object goes out of scope.  they are
called automatically, so you don't have to worry about them being
"private".

Kevin Lee Hayes wrote:
> 
> Talking to Corby, I've asked how to make the constructor/destructor
> private...and he says that it SHOULDN'T be!
> 
> I tried it, and it gives an error.
> 
> Clarification please?
> 
> Kevin Lee Hayes
> 1924 Corriedale Court
> Fort Collins, CO  80526-1101
> 970-482-1727
> hayesk@cs.colostate.edu (for CS200 communications)
> kevinlh@cnr.colostate.edu (for personal communications)
Technical Details
Message-ID: <34FDE5B0.D64243E8@lamar.colostate.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <Pine.HPP.3.94.980302105415.28817A-100000@alain.cs.colostate.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 127144,d80b4a516bf7749a
X-Google-Attributes: gid127144,public
From: Trey Herschede <treyh@lamar.colostate.edu>
Subject: Re: Assig 5, Impl. Note #2 Question
Date: 1998/03/04
Message-ID: <34FDE5B0.D64243E8@lamar.colostate.edu>
X-Deja-AN: 330905382
Content-Transfer-Encoding: 7bit
References: <Pine.HPP.3.94.980302105415.28817A-100000@alain.cs.colostate.edu>
Content-Type: text/plain; charset=us-ascii
Organization: Colorado State University
Mime-Version: 1.0
Newsgroups: csu.cs.200