![]() |
|
#1
|
|||
|
|||
Converting objects of classesHi,
"Explain why it is essential that a class that dynamically allocate memory in the constructor also needs a properly written copy constructor and assignment operator." Is the above question related to memory leaks? How would we know if we have 'improperly' written the copy constructor and assignment operator? What are the pre-emptive measures? "What are the two ways of achieving automatic type conversion from an object of class X into an object of class Y?" |
|
#2
|
|||
|
|||
Re: Converting objects of classesQuote:
See: www.gidforums.com ...for more details. Quote:
Using a derived where a base is required and assignment/copy of a base from a derived? CPP / C++ / C Code:
Output: Code:
:davis: |
Recent GIDBlog
Meeting the local Iraqis by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problem accessing functions in inherited classes | jj90 | C++ Forum | 4 | 14-May-2007 14:12 |
| Beginner working with classes | Timothy_Bennett | C++ Forum | 14 | 05-Apr-2007 22:22 |
| a quick question about using classes, objects and their properties... | abakws | MySQL / PHP Forum | 1 | 20-Nov-2006 09:31 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The