Top "Pure-virtual" questions

A virtual function that must be implemented by every non-abstract derived class.

Is it possible to create a vector of pointers?

Just wondering, because of a problem I am running into, is it possible to create a vector of pointers? And …

c++ stl pointers vector pure-virtual
What can cause a pure virtual function call in C++?

I teach a C++ programming class and I've seen enough classes of errors that I have a good feeling for …

c++ pure-virtual
Implement a pure virtual method in Objective-C

I want to go to there. Seriously though, how does one implement a pure virtual method in an "Apple" way? …

objective-c methods pure-virtual
Are Python pure virtual functions possible and/or worth it?

I may be coming from a different mindset, being primarily a C++ programmer. This question has to do with OOP …

python oop pure-virtual
What does it mean to set the declaration of a function equal to 0? How can you assign an integer to a function?

I was browsing through the sources of a (prefer not to name) GUI Toolkit which wrapped up the Windows API …

c++ windows oop winapi pure-virtual
Overload of pure virtual function

I usually use pure virtual functions for those methods that are required by my code to work well. Therefore, I …

c++ oop design-patterns overloading pure-virtual
pure-specifier on function-definition

While compiling on GCC I get the error: pure-specifier on function-definition, but not when I compile the same code using …

c++ abstract-class pure-virtual
C++ abstract class without pure virtual functions?

I have a base class class ShapeF { public: ShapeF(); virtual ~ShapeF(); inline void SetPosition(const Vector2& inPosition) { mPosition.Set(…

c++ polymorphism abstract-class pure-virtual
C++ override pure virtual method with pure virtual method

Does it ever make sense to override a pure virtual method with another pure virtual method? Are there any functional …

c++ interface coding-style abstract-class pure-virtual
Why does a purely virtual/abstract class require a constructor, in particular for protected const member variables?

I have a purely virtual class defined as such: class BaseClass { protected: const int var; public: void somefun() = 0; // what I …

c++ constants abstract-class pure-virtual