Why is creating a GUI environment for users a natural use for object orientation?

What will be an ideal response?


Creating a GUI environment for users also is a natural use for object orientation. It is easy to think of the components a user manipulates on a computer screen, such as buttons and scroll bars, as similar to real-world objects. Each GUI object contains data-for example, a button on a screen has a specific size and color. Each object also contains behaviors-for example, each button can be clicked and reacts in a specific way when clicked. Some people consider the term object-oriented programming to be synonymous with GUI programming, but object-oriented programming means more.

Computer Science & Information Technology

You might also like to view...

Which of the following statements is false?

a. Wildcard type arguments enable you to specify method parameters, return values, variables, and so on, that act as supertypes of parameterized types. b. A wildcard-type argument is denoted by ?, which represents an “unknown type.”. c. Because a wildcard is a type-parameter name, you can use it as a type name throughout a method’s body. d. If a wildcard is specified without an upper bound, then only the methods of type Object can be invoked on values of the wildcard type.

Computer Science & Information Technology

A code that creates a link to a video, picture, or other type of rich media content

a. embed code b. interactive code c. address code

Computer Science & Information Technology

Although you can add toolbars to Windows Vista, you cannot add them to Internet Explorer

Indicate whether the statement is true or false

Computer Science & Information Technology

Which of the following is true about a while loop?

A. The body of the loop is executed at least once. B. The logical expression controlling the loop is evaluated before the loop is entered and after the loop exists. C. The body of the loop may not execute at all. D. It is a post-test loop

Computer Science & Information Technology