Exam (elaborations)
CS 2114 Final Review questions with answers 2023
- Course
- Institution
When does a class use composition? - When it has a data field that's an instance of another class Give an example of a "has a" relationship. - The Name class has an instance of the String class as a data field What is an adapter class? - Using composition to write a new class that has an inst...
[Show more]