Interviews2 answers
What is a Null object?
2 Answers
An Object that is not instantiated, and has no memory allocation done
Praveen DhatrikaPosted Jan 22, 2016, 9:50 AM EST
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..
praveen_kk4Posted Jul 12, 2006, 10:43 PM EDT
