1:00
en
CR
Constructors, Destructors, and Association
12
accessor : _____ functions return information about an object’s state, or display some or all of an object’s attributes
mutator : _____ functions change an object’s state or attributes
constructor : will be called automatically each time an object is created
destructor : used to perform clean-up operations such as release memory when object goes out of scope
overloaded : two or more constructors defined in a class is said to be _____
copyconstructor : Cat(const Cat& persian); is an example of a ______ for a class Cat.
composition : a relationship between classes where deleting the container will cause the member-objects to be destroyed
aggregation : deletion of the container does not affect the component objects
default : this constructor will be automatically supplied if none is provided by the programmer
parameters : when more than one constructors are used, their _____ should be different
initialization : the main purpose of a constructor
deepcopy : when pointers to dynamically allocated memory is used in a class, it is appropriate to perform this
Constructors, Destructors, and Association
Across:4. | used to perform clean-up operations such as release memory when object goes out of scope | 6. | when more than one constructors are used, their _____ should be different | 10. | will be called automatically each time an object is created |
| 11. | Cat(const Cat& persian); is an example of a ______ for a class Cat. | 12. | deletion of the container does not affect the component objects |
| | Down:1. | the main purpose of a constructor | 2. | two or more constructors defined in a class is said to be _____ | 3. | _____ functions return information about an object’s state, or display some or all of an object’s attributes | 5. | this constructor will be automatically supplied if none is provided by the programmer |
| 7. | a relationship between classes where deleting the container will cause the member-objects to be destroyed | 8. | when pointers to dynamically allocated memory is used in a class, it is appropriate to perform this | 9. | _____ functions change an object’s state or attributes |
| |
© 2016
PuzzleFast.com, Noncommercial Use Only
Constructors, Destructors, and Association
Across:4. | used to perform clean-up operations such as release memory when object goes out of scope | 6. | when more than one constructors are used, their _____ should be different | 10. | will be called automatically each time an object is created |
| 11. | Cat(const Cat& persian); is an example of a ______ for a class Cat. | 12. | deletion of the container does not affect the component objects |
| | Down:1. | the main purpose of a constructor | 2. | two or more constructors defined in a class is said to be _____ | 3. | _____ functions return information about an object’s state, or display some or all of an object’s attributes | 5. | this constructor will be automatically supplied if none is provided by the programmer |
| 7. | a relationship between classes where deleting the container will cause the member-objects to be destroyed | 8. | when pointers to dynamically allocated memory is used in a class, it is appropriate to perform this | 9. | _____ functions change an object’s state or attributes |
| |
© 2016
PuzzleFast.com, Noncommercial Use Only