Click here to Skip to main content
15,895,011 members
Articles / Programming Languages / C++

cannot instantiate an abstract class

Rate me:
Please Sign up or sign in to vote.
5.00/5 (5 votes)
15 May 2012CPOL 0  
The error message says it all really, it's what any sane compiler should give you for the code you've written. You're trying to create an instance of Base which is abstract.In case you don't know, you're trying to create the instance of base when you write Base::Base(). It's an unnamed...

Revisions


  

Compare Revision Minor Date Status Editor
3 - publicly available No 15-May-12 1:43 Available Aescleal
2 No 15-May-12 1:42 Available Aescleal
1 No 14-May-12 23:59 Available Aescleal

License

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


Written By
Software Developer (Senior)
United Kingdom United Kingdom
I've been programming since 1985 - starting with Fortran 77, then moving onto assembler, C and C++ in about 1991. I also know enough Java and Python to read code but you probably wouldn't want me writing it.

I've worked in a wide variety of application areas - defense, banking, games and security with the longest stints being in security. I also seem to end up programming devices far too often. This time I'm programming terahertz band body scanners.

Comments and Discussions