CompTIA ITF+ (FC0-U61) — Question 109
Which of the following would be the BEST design construct to allow developers to group functions and properties for reuse when designing an application?
Answer options
- A. Constant
- B. Vector
- C. Function
- D. Class
Correct answer: D
Explanation
The correct answer is D, Class, as it is specifically designed to encapsulate functions and properties, promoting reuse and organization in application development. Options A (Constant), B (Vector), and C (Function) do not provide the same level of structure for grouping multiple related functionalities and properties together.