Re: Ecosystem constructor


[ Follow Ups ] [ Post Followup ] [ CS2704 Web Discussion Board ] [ FAQ ]

Posted by Nadine on April 18, 2001 at 23:51:02:

In Reply to: Ecosystem constructor posted by Michael Narayan on April 18, 2001 at 21:52:04:

In case you ever have to pass the Ecosystem object around or return it you should implememt a copy constructor. The assignment op is good parctice (not sure of what the use is at the moment, there are voices in my head...)

Hope that helps
N
: Obviously we need a destructor for our ecosystem since it contains dynamic refrences to creatures (even if those are stored in an STL container). But my question is do we also need a copy constructor and overloaded equals even though there is no chance either would be used.




Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ CS2704 Web Discussion Board ] [ FAQ ]