Page 1 of 1

About Question enthuware.ocpjp.v7.2.1507 :

Posted: Sun Mar 30, 2014 6:40 pm
by tn1408
Hello,
How do we assume that TC is a top level class?

Thanks,

Tony,

Re: About Question enthuware.ocpjp.v7.2.1507 :

Posted: Sun Mar 30, 2014 7:16 pm
by admin
Because the code listing makes it clear that it is.

Re: About Question enthuware.ocpjp.v7.2.1507 :

Posted: Mon Apr 23, 2018 4:24 am
by shamran99
Hi,

Wanted to know that what could be the reason for making collection classes non final. I know it is to allow extending that class. But are there any specific reason for that?

Regards,
Shamran.

Re: About Question enthuware.ocpjp.v7.2.1507 :

Posted: Mon Apr 23, 2018 10:19 am
by admin
The reason is same as for making any other class non-final. So that one could extend them and customize the functionality if they want to.