138k views
4 votes
What is an example of an attribute for a screen object

User Drxxd
by
6.1k points

1 Answer

2 votes

Answer:

The answer to this question is given below in the explanation section.

Step-by-step explanation:

First, we need to know what are the attributes of an object in object-oriented programming. In the object-oriented program, an entity that you are going to program considered an object. for example, students, class, course, teacher, and exam are objects in the learning management system. The attributes are the feature of an object whereas methods are the behaviors of an object

In this question, it is asked about to list or give an example of an attribute for a screen object. Screen object can be anything that shows display, for example, your laptop, mobile, tablet, billboard, etc.

The attribute of the screen object are listed below:

  • screen size,
  • screen manufacturer
  • screen type (whether it is a laptop, monitor, digital watch screen, etc)
  • screen width
  • screen length
  • screen color
  • screen pixel
  • Is it a touch screen

The above are some examples of an attribute for a screen object.