Click here to Skip to main content
15,885,980 members
Articles / General Programming

Factory Pattern in C++

Rate me:
Please Sign up or sign in to vote.
4.88/5 (61 votes)
15 Sep 2012CPOL2 min read 345.8K   3.2K   88  
Using the Factory pattern in C++ to expose only an object's abstract type--hiding the implementation class detail.

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

No alternatives have been posted.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
United States United States
I'm an interactive software and web developer by day and a video game developer by night. I hold an Associate's degree in Computer Information Systems, a Bachelor's degree in Game and Simulation Programming, and have been writing various types of software since 1999.

The programming languages in which I am experienced include C, C++, C#, PHP, and JavaScript--just to name a few. I have experience in creating mobile, embedded, desktop, command-line/console, web, and video game applications for consumer, business, and government/defense purposes.

Comments and Discussions