Null object: Difference between revisions

Content added Content deleted
(Created task with a few examples)
 
(Added Ada)
Line 3: Line 3:
Show how to access null in your language by checking to see if an object is equivalent to the null object.
Show how to access null in your language by checking to see if an object is equivalent to the null object.


=={{header|Ada}}==
<Ada>with Ada.Text_Io;

if Object = null then
Ada.Text_Io.Put_line("object is null");
end if;</Ada>


=={{header|C}}==
=={{header|C}}==