Object Oriented Software Engineering View all facts Glossary Help |
subject > programming language construct > statement > loop |
loop comparison table |
Subject | have disadvantage | has part | interchange with | have advantage | have form |
---|---|---|---|---|---|
for loop | it can be slightly harder to read the code of a for loop than a while loop | initializer | a while loop | all the information about controlling the loop is kept in one place | for(initializer; condition; incrementer) |
while loop | condition | a for loop | while(condition) |
Next statement: OCL statement Up: statement Previous statement: long statement