Exit 600-502 Developing with Cisco Network Programmability
Question 4 of 5
0% complete
Q4 Single choice

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

  • 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.