This link has been bookmarked by 46 people . It was first bookmarked on 09 Jul 2006, by Mukesh Soni.
-
03 Jul 10
-
20 Jun 10
-
24 May 10
-
state and behavior
-
behavior through methods (functions
-
state in fields (variables
-
-
20 May 10
-
19 May 10
-
17 May 10
-
Real-world objects share two characteristics: They all have state and behavior.
-
An object stores its state in fields (variables in some programming languages) and exposes its behavior through methods (functions in some programming languages).
-
-
07 Apr 10
-
Real-world objects share two characteristics: They all have state and behavior
-
Identifying the state and behavior for real-world objects is a great way to begin thinking in terms of object-oriented programming.
-
An object stores its state in fields (variables in some programming languages) and exposes its behavior through methods (functions in some programming languages).
-
Software objects are conceptually similar to real-world objects: they too consist of state and related behavior
-
- Modularity: The source code for an object can be written and maintained independently of the source code for other objects. Once created, an object can be easily passed around inside the system.
- Information-hiding: By interacting only with an object's methods, the details of its internal implementation remain hidden from the outside world.
- Code re-use: If an object already exists (perhaps written by another software developer), you can use that object in your program. This allows specialists to implement/test/debug complex, task-specific objects, which you can then trust to run in your own code.
- Pluggability and debugging ease: If a particular object turns out to be problematic, you can simply remove it from your application and plug in a different object as its replacement. This is analogous to fixing mechanical problems in the real world. If a bolt breaks, you replace it, not the entire machine
Bundling code into individual software objects provides a number of benefits, including:
-
-
-
Objects are key to understanding object-oriented technology. Look around right now and you'll find many examples of real-world objects: your dog, your desk, your television set, your bicycle.
-
-
28 Mar 10
-
22 Jan 10
-
29 Jul 09
Joakim Nystrom1. Modularity: The source code for an object can be written and maintained independently of the source code for other objects. Once created, an object can be easily passed around inside the system.
-
11 Jan 09
-
Real-world objects share two characteristics: They all have state and behavior.
-
-
16 Jun 08
-
06 Dec 07
-
22 Jul 07
-
Real-world objects share two characteristics: They all have state and behavior.
-
What possible states can this object be in?" and "What possible behavior can this object perform?".
-
Software objects are conceptually similar to real-world objects: they too consist of state and related behavior. An object stores its state in fields (variables in some programming languages) and exposes its behavior through methods (functions in some programming languages)
-
-
27 Mar 07
-
Real-world objects share two characteristics: They all have state and behavior.
-
-
03 Mar 07
-
19 Feb 07
-
04 Aug 06
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.