Encyclopedia > Yo-yo problem

  Article Content

Yo-yo problem

In computer science, the yo-yo problem is that programmers need to scan the inheritance graph[?] to understand the control flow of a program. It often happens in object-oriented programming. The term is derivered from up-down movement of a toy yo-yo.

Most practices of object-oriented programming recommend keeping the inheritance graph as shallow as possible to avoid this problem. Some additionally advise the use of composition[?] instead of inheritance.


See also: Object-oriented programming, Complexity



All Wikipedia text is available under the terms of the GNU Free Documentation License

 
  Search Encyclopedia

Search over one million articles, find something about almost anything!
 
 
  
  Featured Article
Jamesport, New York

... is 2.41 and the average family size is 2.88. In the town the population is spread out with 20.6% under the age of 18, 5.0% from 18 to 24, 26.8% from 25 to 44, 27.7% from ...

 
 
 
This page was created in 25.6 ms