Internet News Internet Investing Internet Technology Windows Internet Tech. Objects Selena Sol Objects OOP is based around the concept of objects. Objects are little black boxes of functionality that are fully independent of any code that references or uses them. Objects can be thought of as exhibiting two characteristics. Objects have properties and objects have methods.
Properties describe the qualities of an object while methods specify the object's behavior.
Although this is not a perfect analogy, sometimes when I am trying to figure out what an object looks like, I think of objects in terms of nouns, properties in terms of adjectives, and methods in terms of verbs. However, let's consider a more realistic object that you might have to deal with in your code. If you recall, a Select Box object has several properties. For one, Select Boxes have a SIZE that corresponds to the number of visible selections. Select Boxes also can be set to allow either multiple or single selections.