Developing Applications and Automating Workflows Using Cisco Platforms (DEVASC) — Question 272

What are two benefits of using classes over functions when writing applications? (Choose two.)

Answer options

Correct answer: A, E

Explanation

Classes provide improved readability by encapsulating related functionality and data, making the code easier to understand. They also offer better code organization by allowing developers to group related properties and methods, while the other options, such as increased compatibility and variable reusability, do not specifically highlight the unique advantages provided by classes.