I recently came to know that in C++ pure virtual functions can optionally have a body.
What are the real-world use cases for such functions?
The only difference of virtual function with body and pure virtual function with body is that existence of second prevent instantiation. You can't mark class abstract in c++.