The above prog is showing an error
# announcements
a
The above prog is showing an error
d
Yes, you cannot access
dataBase[i].name
without checking that
dataBase[i]
isn't null.
a
Ok thanks
d
Because
dataBase
is
Array<customer?>
, so
dataBase[i]
is
customer?