Page 1 of 1

"Cannot instantiate abstract class"

Posted: Tue Oct 30, 2012 11:16 pm
by RichAlgeni
This crap just drives me crazy! I realize I'm old and ornery, but I swear this stuff is made up but consultants and professors! Confuse people, create fear, uncertainty and doubt. Create an artificial need, then sell a product that fills that need. I've seen this so many times!

What exactly does that mean? Why can't they just use plain language?

Above all people, remember the acronym 'kiss'. Keep it simple stupid!

The beauty of PureBasic is that it is, for a programming language, simple! Yet it is devastatingly effective! I used the adverb 'devastatingly' purposefully, because that's what it does to programming challenges, it devastates them!

Re: "Cannot instantiate abstract class"

Posted: Wed Oct 31, 2012 6:20 am
by DarkDragon
You can't create an object out of a abstract class. You need to derive the abstract class first with a non-abstract class. That's what it means.

Did you get this error message with PB? You shouldn't get it there. Can you show us some code with which it happens?

Re: "Cannot instantiate abstract class"

Posted: Wed Oct 31, 2012 1:37 pm
by luis
Well, abstract classes are part of the C++ language (and some other), the intended audience it's composed by C++ programmers so the message it's perfectly clear to them and to the point.

An abstract class is loosely related to the concept of interfaces in PB, anyway.

Re: "Cannot instantiate abstract class"

Posted: Wed Oct 31, 2012 4:57 pm
by RichAlgeni
Sorry DarkDragon, Luis and everyone, there was NO error in PB. I was doing a search on 'DEP' data execution prevention, and that kept popping up.

Sorry about the confusion! I was just expressing my frustration.