I have a stack of classes with pure virtual members, it'll be populated by derived non-abstract classes. I'm getting the error: This error can be s ...
I have a stack of classes with pure virtual members, it'll be populated by derived non-abstract classes. I'm getting the error: This error can be s ...
I have this error coming up: undefined reference to vtable I'm unable to figure out the root cause of it. I did try to search in Google, but s ...
As per the wiki, which says that[emphasise mine]: Note the code snippet in the quotaion is seen here. Suppose a pure virtual method is defined in ...
I have a pure virtual class called Cipher Cipher has a few other derived classes (for example CaesarCipher). The question will be about CipherQueue ...
I'm deriving from an existing input field class from the Qt Library (not necessary to be familiar with it), where I'm adding a text validator that che ...
I am writing a node addon that builds with node-gyp and I want to link with libraries from a large project (kaldi-asr) that is build using Makefiles. ...
I have a base Class that implements all the mundane stuff with creating a server which spawns a thread, listens on a queue and processes the received ...
I know that if the class is supposed to be abstract, but does not contain any used-defined method, there is technique to achieve this by making the de ...
I need to load a DLL at runtime. I don't know in advance which DLL to load, but DLLs are the implementation of an interface (pure virtual method). The ...
I'm wondering if the following is possible. I wanted my derived class dA to change func() to be pure virtual so that any classes derived from dA must ...
I understand how this goes in the opposite direction. But for various reasons i want to use a base class object to call a derived class method Let's ...
I know that it isn't possible to have class methods that are both pure virtual and static (see this discussion). So, I ask: is there a way to guarante ...
Sorry for the poor description. Here's the issue: This fails due to "'Bar": cannot instantiate abastract class due to following members: 'int PureV ...
I have an abstract base class defined like this: class NodeSubElementEnforceType { public: virtual void getType() = 0; void perfo ...
I have an abstract class BaseProduct that is inherited by classes like ConcreteProduct. I want all children classes to be forced to implement the ...
Given a base class which has some virtual functions, can anyone think of a way to force a derived class to override exactly one of a set of virtual fu ...
Let's say I have a base class called Human. Baby and Adult are sub-classes of Human. Human has a function run as a pure virtual function and I don't w ...
I'm working on a small project, and I found myself in a situation like this : I want to know if there's a way to call the f() function (in class B) ...
I have a problem with abstract classes. I have declared two class Valeur (abstract class) and Boolleen Valeur.hh Valeur.cpp main.cpp When I ...
//Error Here: 'bool Comparable::compare(Comparable *)': cannot convert argument 1 from 'Comparable' to 'Comparable *' //To be honest I don't even ...