Top "Pure-virtual" questions

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

How do I denote a pure virtual function in a UML class diagram?

I am a student learning C++. I am creating a UML class diagram for my program that involves inheritance and …

c++ uml class-diagram virtual-functions pure-virtual
Pure virtual functions in C++11

In C++98, the null pointer was represented by the literal 0 (or in fact any constant expression whose value was zero). …

c++ c++11 virtual pure-virtual nullptr
Calling Pure Virtual Function From Abstract Base Class Member Function?

So, based on a cursory search, I already know that calling a virtual function (pure or otherwise) from a constructor …

c++ inheritance virtual-functions pure-virtual
Why a virtual call to a pure virtual function from a constructor is UB and a call to a non-pure virtual function is allowed by the Standard?

From 10.4 Abstract Classes parag. 6 in the Standard : "Member functions can be called from a constructor (or destructor) of an abstract …

c++ standards pure-virtual
Is there any point in using `override` when overriding a pure virtual function?

For example: class Base { virtual void my_function() = 0; }; class Derived : Base { void my_function() override; }; From what I read, the …

c++ c++11 overriding pure-virtual
Benefits of pure function

Today i was reading about pure function, got confused with its use: A function is said to be pure if …

c pure-virtual
C++11 interface pure virtual destructor

UPD. There is a mark that it is a duplicate of this question. But in that question OP asks HOW …

c++ language-lawyer pure-virtual virtual-destructor
Pure virtual operator

I have a project for school in C++ and I am stuck on one part: I have to overload the …

c++ operator-overloading pure-virtual