adplus-dvertising
frame-decoration

Question

What is the main issue with the encapsulation of both state and behavior into one component in the object-oriented approach?

a.

The separation of concerns may not be the most desirable

b.

The user interface may not be clearly identifiable

c.

The objects may have a complicated usage pattern

d.

The computational parts may not be isolated from the user interface

Answer: (a).The separation of concerns may not be the most desirable Explanation:The encapsulation of both state and behavior into one component in the object-oriented approach may result in a separation of concerns that may not be the most desirable. For example, it may be necessary for an object to present some image of that object to the user, which would result in each object defining its own ways for doing so, instead of a clearly identifiable user interface component that adds to consistency and flexibility.

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the main issue with the encapsulation of both state and behavior into one component in the object-oriented approach?

Similar Questions

Discover Related MCQs

Q. What are the other objects that need to be considered in an object-oriented design besides the ones induced by domain concepts?

Q. What is the main issue with the bottom-up construction of a collection of objects in the object-oriented approach?

Q. What is the main issue with the straightforward application of the object-oriented method in system design?

Q. What is the advantage of encapsulating data types in an object-oriented design?

Q. How does the object-oriented approach provide a smoother transition from requirements analysis to design to code?

Q. What is the benefit of the inheritance mechanism in object-oriented design?

Q. What is the benefit of the object-oriented approach in software design compared to more traditional approaches?

Q. What is the advantage of object-oriented approach over function-oriented approaches?

Q. What is the most widely used approach to design currently?

Q. Which design method has been around the longest?

Q. What are the interrelated features of a properly-designed system?

Q. What is the purpose of abstraction in software design?

Q. What is the importance of the designer in software design?

Q. What is the purpose of information hiding in software design?

Q. What is the most constrained form of the system structure graph in software design?

Q. What are the guiding principles for decomposing a system into modules?

Q. What is the most important factor in software design?

Q. What is the essence of the design process in software design?

Q. What is the purpose of functional testing during the design process?

Q. What is the main purpose of design reviews?