Re: Static class question

2013-02-14 Thread anonymous
On Thursday, 14 February 2013 at 12:49:01 UTC, Lubos Pintes wrote: Hi, I saw one ListBox class implementation. As we all know, ListBox class collects and displays strings. Author decided that he encapsulate the Object as item, and uses its toString() method when string is needed for display. Fo

Static class question

2013-02-14 Thread Lubos Pintes
Hi, I saw one ListBox class implementation. As we all know, ListBox class collects and displays strings. Author decided that he encapsulate the Object as item, and uses its toString() method when string is needed for display. For cases when string is added, he defined this small class, internal