1.

What Is A Null Object?

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.

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.



Discussion

No Comment Found