November 2001
Beginner
1128 pages
29h 12m
English
| 1: | Suppose a String class has the following private members:
class String
{
private:
char * str; // points to string allocated by new
int len; // holds length of string
//...
} ;
|
| 2: | Name three problems that may arise if you define a class in which a pointer member is initialized using new and indicate how they can be remedied. |
| 3: | What class methods does the compiler generate automatically if you don't provide them explicitly? Describe how these implicitly generated ... |
Read now
Unlock full access