reset password
Author Message
LG60
Posts: 6
Posted 18:29 Oct 07, 2018 |

In order for the database class to be a subclass and extend ArrayList<Person> where would we have to initialize/ make the ArrayList<Person>? 

kknaur
Posts: 540
Posted 18:44 Oct 07, 2018 |

HINT: If the Database class is a subclass of ArrayList<Person>, then the Database class is an ArrayList itself.  See if this will help.

LG60
Posts: 6
Posted 18:48 Oct 07, 2018 |

ok i understand that but i guess what im trying to say is if we would have to extend it? eclipse is giving me errors thats why i ask

kknaur
Posts: 540
Posted 18:56 Oct 07, 2018 |

You don't make an ArrayList anywhere.

AldoGil
Posts: 19
Posted 04:00 Oct 08, 2018 |
kknaur wrote:

HINT: If the Database class is a subclass of ArrayList<Person>, then the Database class is an ArrayList itself.  See if this will help.

 

Last edited by AldoGil at 04:03 Oct 08, 2018.