Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 c++ program: cannot instantiate abstract class

views
     
TheSolver
post Aug 7 2012, 02:27 PM

Regular
******
Senior Member
1,108 posts

Joined: Jun 2011
QUOTE(Athono @ Aug 7 2012, 02:18 AM)
user posted image
This leads me to this page:
http://msdn.microsoft.com/query/dev10.quer...ORLIST)&rd=true
Compile Error C2259 is from a C++ program but the page calls the abstract class an "interface":
The bad news is that I have already made all of the methods public in the class:
CODE

class AmbientOccluder: public Light {
public:

 AmbientOccluder(void);

*
Isn't in C++, you need to call the constructor with the parentheses? I always call with empty parentheses even for one without args (void)?

 

Change to:
| Lo-Fi Version
0.0167sec    1.03    6 queries    GZIP Disabled
Time is now: 21st December 2025 - 05:08 AM