| [ next ] [ prev ] [ contents ] | Connascence and Java |
Connascence of execution occurs when the order of execution of two components is important.
sum = 0;
index = 0;
while (index < numbers.length) {
sum += numbers[index];
index++;
}
System.out.println(sum);
|
class Queue {
public:
Queue ();
private:
int myTail;
int myHead;
};
...
Queue::Queue ()
myHead(0),
myTail(myHead)
{ ... }
|
| [ next ] [ prev ] [ contents ] | Copyright 2001 by Jim Weirich. All rights reserved. |