They're implemented with private constructors and public static
methods.
</elements>
However, in the Factory Classes Example, the factory class neither
supports a limited number of instances, nor is it implemented with
private constructors. Either I'm missing something really fundamental
here, or there's a mistake.
Paul.
references:
Factory Classes Elements page:
http://www.cs.utexas.edu/users/downing/cs378/elements/FactoryClasses.html
factory class example:
http://www.cs.utexas.edu/users/downing/cs378/lang/FactoryClasses.c++
On 5/1/05 1:40 PM, in article
1114972853.9...@g14g2000cwa.googlegroups.com, "Paul Wuersig"
<paulw...@gmail.com> wrote:
--
Glenn P. Downing
The University of Texas at Austin
Department of Computer Sciences
Taylor Hall 2.124
Austin, TX 78712
(512) 471-7316
http://www.cs.utexas.edu/users/downing/