PrepAway - Latest Free Exam Questions & Answers

which action represents the best practice to modify data contained within an object?

When object-oriented design is used, which action represents the best practice to modify
data contained within an object?

PrepAway - Latest Free Exam Questions & Answers

A.
When possible, directly modify data to reduce overhead and improve application
performance.

B.
After objects are instantiated, they should not be modified because it may result in
redundant objects in the memory space.

C.
Do not modify the object directly. Instead, create a copy and modify data in the
duplicated object.

D.
Use object update queues.

E.
Use the provided “setter” methods to modify data inside an object.

Explanation:


Leave a Reply