C++ Programming Question:

What is a Null object in C++?

Tweet Share WhatsApp

Answer:

It is an object of some class whose purpose is to indicate that a real object of that class does not exist. One common use for a null object is a return value from a member function that is supposed to return an object with some specified properties but cannot find such an object.

Download C++ Programming PDF Read All 120 C++ Programming Questions
Previous QuestionNext Question
What is an adaptor class or Wrapper class in C++? What is class invariant in C++?